Skip to content

h1 servers can shutdown connections with pending buffered data on filled sockets#4018

Open
deven96 wants to merge 2 commits intohyperium:masterfrom
deven96:diretnan/fix-shutdown-with-unflushed-body
Open

h1 servers can shutdown connections with pending buffered data on filled sockets#4018
deven96 wants to merge 2 commits intohyperium:masterfrom
deven96:diretnan/fix-shutdown-with-unflushed-body

Conversation

@deven96
Copy link

@deven96 deven96 commented Feb 13, 2026

Target fix for #4022

The fix I am proposing is to simply propagate pending flushes within the poll loop to give the buffer a chance to get fully flushed and the included test just simply asserts that shutdown was not called with pending flushes

I did notice a previously yanked change on here that modified the poll loop to achieve something similar but this should lead to exiting the poll loop and waiting to get polled again rather than exhausting the CPU

@deven96 deven96 changed the title h1 servers can be shutdown connections with pending buffered data h1 servers can shutdown connections with pending buffered data Feb 13, 2026
@deven96 deven96 changed the title h1 servers can shutdown connections with pending buffered data h1 servers can shutdown connections with pending buffered data on blocked sockets Feb 13, 2026
@deven96 deven96 changed the title h1 servers can shutdown connections with pending buffered data on blocked sockets h1 servers can shutdown connections with pending buffered data on filled sockets Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant