warmcat / libwebsockets

canonical libwebsockets.org networking library
https://libwebsockets.org
Other
4.66k stars 1.46k forks source link

received LWS_CALLBACK_CLOSED_CLIENT_HTTP when websocket client reconnect server #3122

Open qinlijie309 opened 2 months ago

qinlijie309 commented 2 months ago

hello

I used libwebsocket on windows10 as websocket client, and connect websocket server on linux(arm64) with other websocket code. everything is ok , just sometimes , i try test this situation that linux and windows in normal work then shutdowm linux server , windows client need reconnect linux server until connected.
sometimes it's reconnect successful, sometimes it's failed when client recived this event LWS_CALLBACK_CLOSED_CLIENT_HTTP , then it like block , no reconnect also no recv event , i don't know why , and how do i do when it's happend? now in order for communication to work , it will also reconnect when this event that LWS_CALLBACK_CLOSED_CLIENT_HTTP happend

lws-team commented 2 months ago

Turn on debug build (eg, -DCMAKE_BUILD_TYPE=DEBUG ) and verbose logs and see what it says.