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
... they close shortly afterwards, but there's a race window where Stop() has returned but the sockets are still bound.
This means that the sockets can't be reused immediately – subsequent binds might fail with a "socket in use" if they happen too soon after the previous manager is stopped.
In particular this causes occasional failures in the transport tests.
The text was updated successfully, but these errors were encountered:
Issue #20 means that stopping a transport manager doesn't cause all
sockets to close right away - there's a short window where they're still
bound. So as a temporary workaround, add a sleep to the tests.
(cherry picked from commit 431c26dcf08a4cfe0364ba0b079a82e289578628)
This is an easy enough fix, but I'll wait for issue13 to get merged, since there's no point editing the connTable when that commit completely changes the model.
Fix will be to add a 'stopped' bool channel to the connTable and connWatchers, to allow the caller to block until the callee has stopped.
... they close shortly afterwards, but there's a race window where Stop() has returned but the sockets are still bound.
This means that the sockets can't be reused immediately – subsequent binds might fail with a "socket in use" if they happen too soon after the previous manager is stopped.
In particular this causes occasional failures in the transport tests.
The text was updated successfully, but these errors were encountered: