Fixed issue: NETTY-373 Deadlock in ChunkedWriteHandler on channel
close. * channelInterestChanged event is not fired anymore when a socket is closing because it is unnecessary
This commit is contained in:
parent
d8ff180610
commit
a5aef71218
@ -298,7 +298,7 @@ class NioDatagramChannel extends AbstractChannel
|
||||
if (newWriteBufferSize == 0 || newWriteBufferSize < lowWaterMark) {
|
||||
if (newWriteBufferSize + messageSize >= lowWaterMark) {
|
||||
highWaterMarkCounter.decrementAndGet();
|
||||
if (!notifying.get()) {
|
||||
if (isBound() && !notifying.get()) {
|
||||
notifying.set(Boolean.TRUE);
|
||||
fireChannelInterestChanged(NioDatagramChannel.this);
|
||||
notifying.set(Boolean.FALSE);
|
||||
|
@ -242,7 +242,7 @@ class NioSocketChannel extends AbstractChannel
|
||||
if (newWriteBufferSize == 0 || newWriteBufferSize < lowWaterMark) {
|
||||
if (newWriteBufferSize + messageSize >= lowWaterMark) {
|
||||
highWaterMarkCounter.decrementAndGet();
|
||||
if (!notifying.get()) {
|
||||
if (isConnected() && !notifying.get()) {
|
||||
notifying.set(Boolean.TRUE);
|
||||
fireChannelInterestChanged(NioSocketChannel.this);
|
||||
notifying.set(Boolean.FALSE);
|
||||
|
Loading…
Reference in New Issue
Block a user