Skip to content
Snippets Groups Projects
Commit 43f6ea6c authored by Nicolas Bayet's avatar Nicolas Bayet
Browse files

[FIX] web_editor: set recovery connection to 3s

When trying to recover peer to peer connection, the timeout of 500ms or
1000ms might be too short and 15000ms in unnecessary too long.

If the timeout is too short, it could remove the connection before the
peer to peer had the time to reconnect to it. When we call
`_recoverConnection` on `disconnect` in `oniceconnectionstatechange`
or `onconnectionstatechange`, the signal `disconnect` does not
necessarily mean that it will remain disconnected. Doing nothing could
be enough to reconnect.
(see: https://w3c.github.io/webrtc-pc/#dom-rtcicetransportstate-disconnected

)

closes odoo/odoo#112170

X-original-commit: 3647374c
Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
parent 376bc44b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment