ConfirmSocketSetOptionOnResetConnections may have a race in it wherein an ASIO socket's connect() call may not return by the time the ASIO acceptor on the server end returns from accept(). In ConfirmSocketSetOptionOnResetConnections, this allows the server side to close the connection before connect() finishes, which causes connect() to fail and throw, failing the test. Add a synchronization mechanism to ensure that the onAccept() callback associated with the acceptor doesn't run until connect() has fully completed.
Fix race in ConfirmSocketSetOptionOnResetConnections in transport_layer_asio_test.cpp
- Assignee:
- [DO NOT USE] Backlog - Service Architecture
- Reporter:
- Tyler Seip (Inactive)
- Votes:
-
0 Vote for this issue
- Watchers:
-
3 Start watching this issue
- Created:
- Updated:
- Resolved: