[rabbitmq-discuss] [Malformed Packet] in wireshark after a Channel.open frame

Bruno Thomas thomasbam at gmail.com
Tue Oct 26 16:41:29 BST 2010

Hello rabbitmq list,

We try hard to understand what's happening with our integration tests :

When we don't send http request to our application after, say 10 to 15
min, when the first request is occuring, (sending stats messages to
rabbit), the shutdownListener is called with the cause
"java.net.SocketException: Connection reset".

The shutdownListener is launching a thread that is trying to reconnect
with rabbit (when its cause is not initiated by the application), and
during that time, the messages are put in a queue. When the connection
is reestablished, the messages in the queue are sent. We did this
reconnection thread because we needed to restart the webapps (messages
producers) when the rabbitmq broker was shutdown.

We did tcpdump traces, and when we analysed the frames, we saw that :
- there were not TCP connection resets
- whenever there was Channel.open frame, the next one is tagged as a
malformed packet by wireshark (the Open-Ok)

Is it normal to have these malformed packets ?

Then the connection is reestablished and the messages are sent and
received by consumers.

The problem is that the 2 first basicPublish (before the
shutdownListener is called) are sent without IOException so the
messages are lost. The consumers receive null messages.
Did you see this kind of situation ?

Thank you for your answers.

Bruno Thomas

More information about the rabbitmq-discuss mailing list