netty5/transport/src
Norman Maurer 450a6e3b99 [#2771] Correctly handle constructing of EmbeddedChannel
Motivation:

Because of an incorrect logic in teh EmbeddedChannel constructor it is not possible to use EmbeddedChannel with a ChannelInitializer as constructor argument. This is because it adds the internal LastInboundHandler to its ChannelPipeline before it register itself to the EventLoop.

Modifications:

First register self to EventLoop before add LastInboundHandler to the ChannelPipeline.

Result:

It's now possible to use EmbeddedChannel with ChannelInitializer.
2014-08-15 12:12:57 +02:00
..
main/java/io/netty [#2771] Correctly handle constructing of EmbeddedChannel 2014-08-15 12:12:57 +02:00
test/java/io/netty [#2771] Correctly handle constructing of EmbeddedChannel 2014-08-15 12:12:57 +02:00