Hello, I was facing reconnection issues with some clients.
After analyzing the TCP traffic with tcpdump I've noticed that a client sent/or I received a malformed PINGREQ packet, it was supposed to be 0xc0 followed by 0x00 instead I'm getting 0x0a followed by 0xc0.
Right now the client doesn't get a response from it's (broken) PINGREQ and resets itself as per specification.
Is this the expected broker behavior in this case?
I think the packet it's ignored (no log mentions), should the client be disconnected or notified?
EDIT:
I'm using version 2.0.12 from snap
I looked a bit at the code and in src/read_handle.c this case should fall into the default case branch, being a 3.1.x spec client, no action is performed.
Is this correct? Should the client be disconnected?
Hello, I was facing reconnection issues with some clients.
After analyzing the TCP traffic with
tcpdumpI've noticed that a client sent/or I received a malformedPINGREQpacket, it was supposed to be0xc0followed by0x00instead I'm getting0x0afollowed by0xc0.Right now the client doesn't get a response from it's (broken)
PINGREQand resets itself as per specification.Is this the expected broker behavior in this case?
I think the packet it's ignored (no log mentions), should the client be disconnected or notified?
EDIT:
I'm using version 2.0.12 from snap
I looked a bit at the code and in
src/read_handle.cthis case should fall into the default case branch, being a 3.1.x spec client, no action is performed.Is this correct? Should the client be disconnected?