packet loss detection and timeout retransmission mechanism for theia browser #13869
-
How to add packet loss detection and timeout retransmission mechanism in the process of front-end and back-end communication of theia? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @lqd1434, since the network stack of Theia is built on TCP (HTTP/Websocket), the protocol already ensures on a low level that packets arrive. Meaning that there's already a retransmission mechanism in place. I don't think our network infrastructure is capable of exposing this low level information. The only way to identify that the network connection is bad is by waiting for the socket.io ping to timeout - which takes 30 seconds. In that case the application will go into offline mode which will be indicated to the user in the status bar of the app. |
Beta Was this translation helpful? Give feedback.
Hey @lqd1434,
since the network stack of Theia is built on TCP (HTTP/Websocket), the protocol already ensures on a low level that packets arrive. Meaning that there's already a retransmission mechanism in place. I don't think our network infrastructure is capable of exposing this low level information.
The only way to identify that the network connection is bad is by waiting for the socket.io ping to timeout - which takes 30 seconds. In that case the application will go into offline mode which will be indicated to the user in the status bar of the app.