[Libwebsockets] No pong in reply to ping without data

"Andy Green (林安廸)" andy at warmcat.com
Sat Feb 15 09:03:07 CET 2014


On 13/02/14 00:38, the mail apparently from CyB MlS included:
> Hi,
>
> I have discovered thant the server does not reply to ping if data length
> is zero. I hava the same behavior with the latest commits.
> With wireshark, i see just the tcp ack but no pong reply.
>
> It can be reproduce with the supplied example :
>
> libwebsockets-test-server --port=7681
> libwebsockets-test-ping 127.0.0.1 --port=7681 --size=0
>
> If the size parameter is not 0, it work.
>
> I take a look to the source, but nothing obvious for me.

That was actually a pretty nasty issue, thanks for raising it.

http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/commit/?id=8ea1955c3e4fb49a4e7d431b63601faa7223d124

-Andy




> CyB
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> http://ml.libwebsockets.org/mailman/listinfo/libwebsockets




More information about the Libwebsockets mailing list