QPID-4385: perf test ClientRegistry timeout now only applies to each registration, not to the whole registration sequence, thus allowing large number of clients to register without false timeouts.

Applied patch from Philip Harvey <phil@philharveyonline.com>

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1401426 13f79535-47bb-0310-9956-ffa450edef68
QPID-4389: Send the selector of durable subscriber in arguments of ExchangeBind command

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1401515 13f79535-47bb-0310-9956-ffa450edef68
QPID-4272: Large amounts of code are duplicated between the SSL and TCP transports
Refactor to unify the various SSL and TCP interfaces:
- Make ssl listen have the same signature as regular sockets
- Give ssl connect same interface as tcp
- Unify the SSL and TCP IO interfaces some more

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1401558 13f79535-47bb-0310-9956-ffa450edef68
QPID-4272: Large amounts of code are duplicated between the SSL and TCP transports
Lift Socket into an interface with concrete implementations
- BSDSocket, WinSocket and SslSocket
- As a side effect completely change the approach we use for platform
  specific handles: IOHandle now directly carries the platform handle
  but its real type is only exposed to platform specific code.
- Modified RDMA code for the new IOHandle approach

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1401559 13f79535-47bb-0310-9956-ffa450edef68
QPID-4272: Large amounts of code are duplicated between the SSL and TCP transports
Add the security related functions to the Socket/Asynch interfaces

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1401560 13f79535-47bb-0310-9956-ffa450edef68
QPID-4272: Large amounts of code are duplicated between the SSL and TCP transports

Refactor SslMux support simplifying it and remove need for separate
SslHandler and SslIo code.

Refactored SSL client code to use the same connect and broker SSL to use the same
accept sequences as the TCP code. This also solves QPID-3565: IPv6 support for SSL
transport on Unix C++ client/broker

Remove now unneeded ssl files.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1401561 13f79535-47bb-0310-9956-ffa450edef68
Bug 868364 - QPID-4391: HA replicating subscriptions should not auto-delete queues

When an auto-delete queue is replicated, the replicating subscription attempts
to auto-delete the queue after it has already been auto-deleted by the closing
of the last non-HA consumer.  An issue occurs if a new auto-delete queue with
the same name is created shortly after the deletion of the previously queue.
This can occur when a client subscribes to an auto-delete queue and is
temporarily disconnected from the broker.  It is possible for the cancelled HA
subscription to remove the newly created queue from the queue registry since the
old and new queues use the same names.  The HA replicating subscription should
not execute the auto-delete logic when the subscription is cancelled.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1401709 13f79535-47bb-0310-9956-ffa450edef68
Bug-869420 - QPID-4393: BrokerReplicator should call queue->bind, not exchange->bind

In BrokerReplicator, there are a few places that it calls
exchange->bind(). We're seeing some incorrect behavior during failover testing
(e.g. an exchange shows that it has 5 bindings when there is really only 1) and
we think we've narrowed it down to this. Instead of calling exchange->bind(), it
should call queue->bind(). If you look at qpid::broker::Broker::createObject(),
you'll see that this method calls queue->bind() to bind a queue to an exchange.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1401710 13f79535-47bb-0310-9956-ffa450edef68
Bug:868364 - QPID-4391: HA ignore stale responses.

Related issue discovered while fixing this bug:

The BrokerReplicater pulls management events and query responses from different
queues, there is no co-ordination between them. If a response is processed late,
after create and delete events, it will incorrectly re-create the deleted queue.

This patch ignores responses if we have already seen an event for the queue or
exchange.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1401711 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA - Fixed a make-dist bug by adding a missing file.


git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1401721 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: removed all remaining traces of unused alloca.h

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1401831 13f79535-47bb-0310-9956-ffa450edef68
QPID-4392 C++ Broker link channel number wrap.
Maintain a pool of available channel numbers.



git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1402158 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: Fix compile error on windows.

Using a private class typedef in a free function.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1402191 13f79535-47bb-0310-9956-ffa450edef68
QPID-4395 : Fix client ack in onMessage in JMS AMQP 1.0 client

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1402430 13f79535-47bb-0310-9956-ffa450edef68
QPID-4396 : [Java AMQP 1.0] move examples into sub-module

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1402462 13f79535-47bb-0310-9956-ffa450edef68
QPID-4404 C++ Broker qpidd hang with --config <directory>
Peeking at the conf sets the error flag and prevents the hang.



git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1403797 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: shamelessly stole some cmake improvements from proton:
- Don't generate the docs all the time (unless we have to)
- Take a guess as to whether to use lib or lib64 to install libraries
  (This can be overridden in distribution package builds)

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1403812 13f79535-47bb-0310-9956-ffa450edef68