qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafael Schloming <rafa...@redhat.com>
Subject Re: Java Client failes to close 0-10 connection after protocol negotiation
Date Mon, 05 Oct 2009 12:09:12 GMT
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.


Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org

View raw message