Open adam-fowler opened 1 week ago
Check for half closure during server upgrade and close channel if client closes the channel
This is to fix #2742
Add userInboundEventTriggered function to NIOTypedHTTPServerProtocolUpgrader which checks for ChannelEvent.inputClosed
userInboundEventTriggered
NIOTypedHTTPServerProtocolUpgrader
ChannelEvent.inputClosed
Negotiation future now errors when client closes the connection instead of never completing
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 toNIOTypedHTTPServerProtocolUpgrader
which checks forChannelEvent.inputClosed
Result:
Negotiation future now errors when client closes the connection instead of never completing