Skip to content

Conversation

@nyannyacha
Copy link
Contributor

@nyannyacha nyannyacha commented Nov 12, 2025

What kind of change does this PR introduce?

Bug fix, Enhancement

Description

This PR changes the worker's behavior to immediately drop the socket when the HTTP handler returns anything other than a response object, instead of idling the connection indefinitely (of course, the connection eventually drops anyway when the worker is terminated).

Due to this change, HTTP clients should be able to observe that the socket is immediately dropped in these cases. (In a hyper lib, this is represented by incomplete_message).

@nyannyacha nyannyacha merged commit dc817c0 into main Nov 14, 2025
5 checks passed
@nyannyacha nyannyacha deleted the ny/close-socket-when-return-invalid-value-in-serve-callback branch November 14, 2025 01:01
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.

3 participants