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:
Trustin Lee 2011-02-01 11:43:16 +09:00
parent d8ff180610
commit a5aef71218
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);