netty5/codec-http/src
Moses Nakamura bff951ca07 codec-http: HttpClientUpgradeHandler can handle streamed responses
Motivation:

We want to reject the upgrade as quickly as possible, so that we can
support streamed responses.

Modifications:

Reject the upgrade as soon as we inspect the headers if they're wrong,
instead of waiting for the entire response body.

Result:

If a remote server doesn't know how to use the http upgrade and tries to
responsd with a streaming response that never ends, the client doesn't
buffer forever, but can instead pass it along.  Fixes #5954
2016-11-01 06:32:41 +01:00
..
main/java/io/netty/handler/codec codec-http: HttpClientUpgradeHandler can handle streamed responses 2016-11-01 06:32:41 +01:00
test codec-http: HttpClientUpgradeHandler can handle streamed responses 2016-11-01 06:32:41 +01:00