websocket-client icon indicating copy to clipboard operation
websocket-client copied to clipboard

Loosing packets when re-establishing new conntion

Open ArunEG opened this issue 6 years ago • 1 comments

Hi

When websocket client re-establish the connection due to some error, all the packets are queued in the rx or tx in previous TCP connection will loose, Is there any way to reuse the tx and rx queue for new TCP connection.

root@N100AR netstat -na | grep <port>
tcp        0      0 56.94.213.17:48402      <dest ip:port    ESTABLISHED 
tcp        0  **63288** 56.122.33.2:60306       <dest ip:port    FIN_WAIT1 

Thanks Arun G

ArunEG avatar Feb 03 '20 12:02 ArunEG

Because this is a common question, the general answer is now in the project FAQ. This question is similar to #555.

It might be possible to copy the tx and rx socket data between sockets in the operating system, but this is outside the scope of the WebSocket protocol and the websocket-client project.

engn33r avatar Apr 30 '21 02:04 engn33r