You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cozy-Realtime open several sockets to the stack instead of only one.
This is due to race condition located in getCozySocket. If several calls to realtime.subscribe or subscribeAll are made in a row, each will generate a new call to getCozySocket. But as getCozySocket is asynchronous, the socket singleton will not be return and a new condition will be made.
Instead of the cozySocket, we should return here the promise of the cozySocket.
This fix need tests.
The text was updated successfully, but these errors were encountered:
Cozy-Realtime open several sockets to the stack instead of only one.
This is due to race condition located in
getCozySocket
. If several calls torealtime.subscribe
orsubscribeAll
are made in a row, each will generate a new call togetCozySocket
. But asgetCozySocket
is asynchronous, the socket singleton will not be return and a new condition will be made.Instead of the cozySocket, we should return here the promise of the cozySocket.
This fix need tests.
The text was updated successfully, but these errors were encountered: