Commit b7be1e4
committed
Fix hang on Windows when multiple --client args are present
The Windows poll function does not clear revents field before it is
populated. As a result, subsequent calls to poll using the same
pollfd reference return with revents set even when there is nothing
available to read. This later results in a hang in recv().
Signed-off-by: James Rizzo <[email protected]>1 parent 96afc23 commit b7be1e4
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
902 | | - | |
903 | | - | |
| 902 | + | |
| 903 | + | |
904 | 904 | | |
905 | | - | |
906 | 905 | | |
907 | 906 | | |
908 | 907 | | |
| |||
0 commit comments