mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +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>
(cherry picked from commit a026de35e0)