netty5/transport/src/main/java/io/netty/channel/embedded
Norman Maurer ae0fbb45e4
Ensure the DefaultChannelHandlerContext is unlinked once removed (#9970)
Motivation:

At the moment the next / prev references are not set to "null" in the DefaultChannelHandlerContext once the ChannelHandler is removed. This is bad as it basically let users still use the ChannelHandlerContext of a ChannelHandler after it is removed and may produce very suprising behaviour.

Modifications:

- Fail if someone tries to use the ChannelHandlerContext once the ChannelHandler was removed (for outbound operations fail the promise, for inbound fire the error through the ChannelPipeline)
- Fix some handlers to ensure we not use the ChannelHandlerContext after the handler was removed
- Adjust DefaultChannelPipeline / DefaultChannelHandlerContext to fixes races with removal / replacement of handlers

Result:

Cleanup behaviour and make it more predictable for pipeline modifications
2020-03-01 08:13:33 +01:00
..
EmbeddedChannel.java Ensure the DefaultChannelHandlerContext is unlinked once removed (#9970) 2020-03-01 08:13:33 +01:00
EmbeddedChannelId.java Cleanup ChannelId handling of basic methods 2017-02-15 11:53:36 -08:00
EmbeddedEventLoop.java Ensure the DefaultChannelHandlerContext is unlinked once removed (#9970) 2020-03-01 08:13:33 +01:00
EmbeddedSocketAddress.java Saner toString() implementation for EmbeddedSocketAddress 2013-11-08 18:04:40 +09:00
package-info.java Synchronized between 4.1 and master 2014-04-25 00:38:02 +09:00