<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Michael,<br>
<br>
<br>
So I understand that it is the consumer's connection that was hanging
in there.<br>
<br>
I tried to reproduce your problem yesterday (killing off both consumer
and producer apps), with no success.<br>
What version of Java are you using?<br>
<br>
By not having been shutdown cleanly... could it be possible, in your
case, that the client has been disconnected from the network abruptly,
in some way?<br>
<br>
The only situation I can think of when you can have stray connections
(and would not be a bug) would be the case when the socket has been
broken in some way without doing a TCP FIN. If the app is killed, the
underlying OS takes care of closing all its FDs, including all sockets
that were held by the app - so that shouldn't cause stray connections.
But, for example, if the client machine is physically disconnected from
the network, the broker has no way of knowing that and expects the
client to continue consuming (but it doesn't). Until the TCP socket
times out (could take 15 mins), the message would remain blocked in the
queue, as it is reserved for the disconnected client (which didn't
receive the message entirely and/or didn't get to ack).<br>
<br>
<br>
Rgds,<br>
Vlad.<br>
<br>
<br>
On 09/17/2010 03:56 PM, Michael Burns wrote:
<blockquote
cite="mid:AANLkTinC_Yf7K1TB_67dxXRGnsMH-3MQk9LMP_3_CGoN@mail.gmail.com"
type="cite">Hi,<br>
<br>
Just to add that I experienced the delay problem again - this time I
checked the number of connections that were open and saw a stray
connection was still hanging about. Upon manually killing this
connection my message then came through.<br>
Any thoughts? <br>
<br>
(Again just to add that I'm not 100% sure our consumer app shutdown
cleanly, it may have been killed before the connection could be closed
our side)<br>
<br>
Thanks,<br>
Michael<br>
<br>
<div class="gmail_quote">On Thu, Sep 16, 2010 at 1:39 PM, Michael
Burns <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:michaelburns1@gmail.com">michaelburns1@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi
Vlad,<br>
We're using the Java client 1.8.1<br>
<br>
<br>
Thanks,<br>
<font color="#888888">Michael</font>
<div>
<div class="h5"><br>
<br>
<div class="gmail_quote">On Thu, Sep 16, 2010 at 1:37 PM, Vlad
Alexandru Ionescu <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:vlad@rabbitmq.com" target="_blank">vlad@rabbitmq.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I've noticed sometimes that there are extra connections hanging about
on the RabbitMQ broker (using rabbitmqctl list_connections).<br>
</blockquote>
<br>
</div>
Michael, can you tell us which client(s) are you using?<br>
<br>
Thanks,<br>
<font color="#888888">Vlad.<br>
<br>
</font></blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</blockquote>
</body>
</html>