Repository navigation
Commit 74e19df
committed
Restore read interest after an asynchronous 100 Continue
addSocket() replaces the reactor interest set rather than adding to it,
so the would-block path added in this PR leaves a socket registered for
writability only. Every other sending state either keeps sending or
re-registers Readable once it finishes, but Sending100Continue moved to
ReceivingBody without doing so and then returned to wait for a request
body it could no longer be woken for.
On Linux that is a busy loop on a level-triggered EPOLLOUT with the body
never read: an epoll probe registering only EPOLLOUT reports EPOLLOUT on
every wait and never EPOLLIN, even with readable bytes already pending.
On Windows there is no further FD_WRITE, so the request stalls.
The trigger is narrow because it needs a 25 byte interim response to
block on a fresh connection, but the interest set is now restored
explicitly rather than by luck.
Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>1 parent b48b268 commit 74e19df
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
509 | 516 | | |
510 | 517 | | |
511 | 518 | | |
| |||
0 commit comments