netty5/codec-http/src
Norman Maurer 7a562943ad [#4533] Ensure replacement of decoder is delayed after finishHandshake() is called
Motivation:

If the user calls handshake.finishHandshake() we need to ensure that the user has the chance to setup the pipeline before any WebSocketFrames are read. Because of this we need
to delay the removal of the HttpRequestDecoder.

Modifications:

- Remove the HttpRequestDecoder via the EventLoop and so delay it which gives the user a chance to setup the pipeline after finishHandshake() completes
- Add unit test for this.

Result:

Less surpising and correct behaviour even if the http response and websocket frame are received in one read operation.
2016-02-04 13:57:35 +01:00
..
main/java/io/netty/handler/codec [#4533] Ensure replacement of decoder is delayed after finishHandshake() is called 2016-02-04 13:57:35 +01:00
test [#4533] Ensure replacement of decoder is delayed after finishHandshake() is called 2016-02-04 13:57:35 +01:00