New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EmbeddedChannel does not fireInactive when closing #4316
Comments
is it because closeExecutor is null for EmbeddedChannel...? |
@nmittler... yes its a bug. working on it, stay tuned. |
@ninja- and no its not because of closeExecutor is null. |
@normanmaurer - Thanks for taking this one! |
normanmaurer
added a commit
that referenced
this issue
Oct 7, 2015
…or disconnect(...) is called. Motivation: We missed to run all pending tasks when EmbeddedChannel.close(...) or disconnect(...) was called. Because of this channelInactive(...) / channelUnregistered(...) of the handlers were never called. Modifications: Correctly run all pending tasks and cancel all not ready scheduled tasks when close or disconnect was called. Result: Correctly run tasks on close / disconnect and have channelInactive(...) / channelUnregistered(...) called.
normanmaurer
added a commit
that referenced
this issue
Oct 7, 2015
…or disconnect(...) is called. Motivation: We missed to run all pending tasks when EmbeddedChannel.close(...) or disconnect(...) was called. Because of this channelInactive(...) / channelUnregistered(...) of the handlers were never called. Modifications: Correctly run all pending tasks and cancel all not ready scheduled tasks when close or disconnect was called. Result: Correctly run tasks on close / disconnect and have channelInactive(...) / channelUnregistered(...) called.
normanmaurer
added a commit
that referenced
this issue
Oct 7, 2015
…or disconnect(...) is called. Motivation: We missed to run all pending tasks when EmbeddedChannel.close(...) or disconnect(...) was called. Because of this channelInactive(...) / channelUnregistered(...) of the handlers were never called. Modifications: Correctly run all pending tasks and cancel all not ready scheduled tasks when close or disconnect was called. Result: Correctly run tasks on close / disconnect and have channelInactive(...) / channelUnregistered(...) called.
normanmaurer
added a commit
that referenced
this issue
Oct 7, 2015
…or disconnect(...) is called. Motivation: We missed to run all pending tasks when EmbeddedChannel.close(...) or disconnect(...) was called. Because of this channelInactive(...) / channelUnregistered(...) of the handlers were never called. Modifications: Correctly run all pending tasks and cancel all not ready scheduled tasks when close or disconnect was called. Result: Correctly run tasks on close / disconnect and have channelInactive(...) / channelUnregistered(...) called.
This was referenced Feb 2, 2021
This was referenced Feb 9, 2021
Closed
Closed
Closed
Closed
Closed
Closed
pulllock
pushed a commit
to pulllock/netty
that referenced
this issue
Oct 19, 2023
…...) or disconnect(...) is called. Motivation: We missed to run all pending tasks when EmbeddedChannel.close(...) or disconnect(...) was called. Because of this channelInactive(...) / channelUnregistered(...) of the handlers were never called. Modifications: Correctly run all pending tasks and cancel all not ready scheduled tasks when close or disconnect was called. Result: Correctly run tasks on close / disconnect and have channelInactive(...) / channelUnregistered(...) called.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AbstractChannel
willfireChannelInactive
when closed: https://github.com/netty/netty/blob/master/transport/src/main/java/io/netty/channel/AbstractChannel.java#L662.However, this is not done for the
EmbeddedChannel
, so pipelines usingEmbeddedChannel
will not behave the same way as with other channels.@Scottmitch @normanmaurer WDYT?
The text was updated successfully, but these errors were encountered: