Martin Ritchie wrote:
Hi,
I'm just trying to understand the java client protocol negotication code.
As I understand it we attempt to connect 0-10 first and the java
broker replies saying 0-9 which we then use to connect using Mina.
However, does the 0-10 IoReceiver/IoSender Connection/socket actually
get closed?
I'm seeing the BrokerStartupTest fail because the previous test is
logging DEBUG IoReceive Connection closed logs in to the log run of
the next test.
See below for log.
Now perhaps it is the fault of the Java Broker, should it close the
socket after replying with the supported protocol versions?
Should the client ensure that it has closed the socket?
Thoughts?
Strictly speaking I'd say both are responsible for closing it, i.e.
neither side should depend on the other side closing the socket first in
order to accomplish it's cleanup.
--Rafael
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]