Closed jackyzy823 closed 7 years ago
FYI: in RFC6455:
5.5.2. Ping The Ping frame contains an opcode of 0x9. A Ping frame MAY include "Application data".
Hi @jackyzy823, thanks for reporting. I've pushed some changes to support pings with cero payload. Also added reg-test (test_02-b). Best Regards
After receiving PING frame from server ,the nopoll websockets client will just shutdown in function
nopoll_conn_get_msg
(line 3378 of npoll_conn.c) , when the payload_size of PING frame is 0 .Some code handling PING frame (however this code will never work in case of the closed connection) in function
nopoll_conn_read
(line 3851 ofnpoll_conn.c
) could be moved to functionnopoll_conn_get_msg
before line 3378` to handle PING frame properly.