Commit 4b20af8
committed
ssl: Fix windows IOCP socket path
When events (renegotiate, alert, post_handshake_data) arrive during
an async send, they are postponed and low is set to 0 as a signal
to keep the sender in async_wait until the buffer fully drains.
In do_async_send/6, the {completion, _} branch called new_async/1
which overwrote low with the default (4096), losing the signal.
This caused unnecessary state ping-pong between async_wait and
connection on Windows (IOCP) when postponed events were pending.
Preserve low from the original async record and guard the
transition to connection on low > 0.1 parent 9503f84 commit 4b20af8
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
670 | 670 | | |
671 | 671 | | |
672 | 672 | | |
| 673 | + | |
673 | 674 | | |
674 | 675 | | |
675 | | - | |
676 | | - | |
| 676 | + | |
| 677 | + | |
677 | 678 | | |
678 | 679 | | |
679 | 680 | | |
| |||
0 commit comments