On 05/20/2011 03:26 PM, Pavel Moravec wrote:
Hi, I have two quite technical questions concerning connection option
"reconnect" that defines if the client shall transparently reconnect
when the connection is lost (quoting "Programming in Apache Qpid"
manual).
First question: What the "if the connection is lost" _should_
technically mean? TCP connection is lost, i.e. operating system
announces to userspace that the socket / TCP connection is closed?
Yes.
Or
some / all AMQP session(s) is/are lost? Or something else?
Second question: If reconnect:true is set, should the client bind to
the broker with the same client_pid? Or a new one?
The same one if it is the same process (the pid is the process id).
(some background to the questions: it seems there is a scenario that
ends up the client thinks it has to reconnect to the broker while the
broker keeps the previous connection open - the reconnection attempt
is then rejected as it contains client_pid of an established
session)
That's the session id, which in the c++ is by default a random UUID and
is reused when re-establishing a session on reconnect.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]