Skip to content

Drain Request Buffer After Calling the Handler Function #4

Closed
@fhessel

Description

@fhessel

Currently, when the handler function is called and does not consume the whole request body (either due to an error or intended), the request body buffer will not be cleared (up to Content-Length bytes or its actual end).
This is especially a problem with Connection: keep-alive requests, as parsing the header line will start exactly where the callback function stopped consuming the body.
This should be changed to get the server more reliable, even if the callback function terminated unexpectedly.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions