warmcat / libwebsockets

canonical libwebsockets.org networking library

Home Page:https://libwebsockets.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

received LWS_CALLBACK_CLOSED_CLIENT_HTTP when websocket client reconnect server

qinlijie309 opened this issue · comments

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

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