mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Check for half closure during server upgrade and close channel if client closes the channel ### Motivation: This is to fix #2742 ### Modifications: Add `userInboundEventTriggered` function to `NIOTypedHTTPServerProtocolUpgrader` which checks for `ChannelEvent.inputClosed` ### Result: Negotiation future now errors when client closes the connection instead of never completing --------- Co-authored-by: Franz Busch <privat@franz-busch.de>