This repository was archived by the owner on Jan 20, 2025. It is now read-only.
Commit 1212289
committed
Skip onPoll processing until socket is fully connected
Previously there was a risk that an in-progress connection with a valid
socket would be selected for polling and its installed onPoll callback
invoked before the onConnect event arrives, resulting in potentially
undefined behavior. Fixed by use of the standard connected() method.1 parent fd36085 commit 1212289
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
898 | 898 | | |
899 | 899 | | |
900 | 900 | | |
901 | | - | |
| 901 | + | |
902 | 902 | | |
903 | 903 | | |
904 | 904 | | |
| |||
0 commit comments