Project

General

Profile

Unexpected websocket close event received when network cable plug out-in

Added by Ka_C_Ka over 3 years ago

When I plug out and in network cable in several seconds. my client receive the close event. But, the server's socket works normal.
How can I fix this issue?


Replies (2)

RE: Unexpected websocket close event received when network cable plug out-in - Added by gstrauss over 3 years ago

How can I fix this issue?

Step 1: identify incorrect behavior
Step 2: describe both the incorrect behavior and the expected behavior in detail

"the server's socket works normal" is too vague.

Also, there is nothing you have described that is wrong with lighttpd.

If your client is unable to handle a network disconnect for a few seconds, then that is a severe limitation in your client, whether in client OS behavior or client application.

RE: Unexpected websocket close event received when network cable plug out-in - Added by Ka_C_Ka over 3 years ago

Thank you for your reply.
My server and client work in blocking mode.On my other platform, the traffic can restore to normal after network cable plug in. But on this platform, when I plug out the cable, client receives the onclose event immediately.Server and client must do socket reconnect.

    (1-2/2)