Skip to content

4.83.2 - HTTPServerErrorHandler: Improve Error Handling for HTTPParserError

Compare
Choose a tag to compare
@penny-for-vapor penny-for-vapor released this 22 Sep 13:09
· 63 commits to main since this release
1f2b44b

What's Changed

HTTPServerErrorHandler: Improve Error Handling for HTTPParserError by @fred-sch in #2922

Invalid HTTP previously just closed the connection, but did not actually handle the errors.

This PR uses an adapted version of https://github.com/apple/swift-nio/blob/main/Sources/NIOHTTP1/HTTPServerProtocolErrorHandler.swift to properly catch exceptions if they occur.

New Contributor

Reviewers

Thanks to the reviewers for their help:

This patch was released by @gwynne

Full Changelog: 4.83.1...4.83.2