-
Notifications
You must be signed in to change notification settings - Fork 326
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
Please improve socket error handlings / recovery in unreliable wifi network #245
Comments
Hi, is your master and viewer running in the same network or are you using turn? |
Can you resend link for "for issue #2, it could be that you are filling the kernel send buffer. you can try give it a larger size here: "? Maybe there are new check-ins. The specified line does not have code to change buffer size |
Hi @zwei333 , any updates regarding issues you posted? For issue 1, the RtcOnConnectionStateChange should be invoked with either RTC_PEER_CONNECTION_STATE_FAILED or RTC_PEER_CONNECTION_STATE_CLOSED and you should tear down and recreate the peerConnection again. |
@zwei333 any update? |
Our wifi network in office is very noisy, and our camera's wifi driver is not the best, so the webrtc is running in a very tough wifi environment.
Although this scenario is rare in the field, it is a very good stress test of kvs software error resilience.
We need help to improve the socket error handling in this extreme condition so that the video is still barely acceptable.
In our office, we see these errors:
status code 0x58000022
Not sure if it is necessary to close socket. And after socket is closed, maybe we should quickly reconnect. Current code calls socketConnectionSendData() many times, getting many of error messages, and video is frozen
status code 0x5800001a
Sending fails and then frames dropped. When the error happens, the error repeats many times, and webrtc drops a lot of frames. Looks like re-transmission kicks in that causes significant latency, as much as 5 seconds.
Like to see improved strategy of dropping frames and re-transmiting, so that latency won't increase too much in noisy wifi network.
The text was updated successfully, but these errors were encountered: