Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

will the callback function going to case LWS_CALLBACK_CLOSED if the websocket client have not sent FIN ACK or RST? #3268

Open
pppaulpeter opened this issue Nov 7, 2024 · 3 comments

Comments

@pppaulpeter
Copy link

pppaulpeter commented Nov 7, 2024

Hi Andy,

image

as shown in the image, the websocket client have not close the websocket conenction, but my websocket server going to the callback case LWS_CALLBACK_CLOSED, i don't know why, if i change the websocket client to postman from web client, then i can't reproduce the problem. will the lws going to LWS_CALLBACK_CLOSED because the other side tcp windows buffer is full? what could be the root cause?

@lws-team
Copy link
Member

lws-team commented Nov 7, 2024

There are verbose lws logs that describe what it's doing and why. You should maybe have a look?

@pppaulpeter
Copy link
Author

pppaulpeter commented Nov 7, 2024

There are verbose lws logs that describe what it's doing and why. You should maybe have a look?

i set the debug level to debug
debug_level = LLL_ERR | LLL_WARN | LLL_NOTICE | LLL_INFO | LLL_DEBUG ;
but it didn't print much information,
this is the log after closed
Nov 7 11:17:16 : ^[[35;1m[2024/11/07 11:17:16:4231] N: lws_gate_accepts: on = 0
Nov 7 11:17:16 : ^[[0m
Nov 7 11:17:16 : ^[[35;1m[2024/11/07 11:17:16:4232] N: __lws_lc_untag: -- [wsisrv|3e|adopted] (1) 141.014ms
i will check it again

@lws-team
Copy link
Member

lws-team commented Nov 7, 2024

Build with CMAKE_BUILD_TYPE=DEBUG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants