From 88d92f584bab9e46aefb82aefa9c7f8966d3554f Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Thu, 5 Jul 2012 12:38:42 +0200 Subject: [PATCH] 384254 revert change to writable when not dispatched --- .../jetty/io/nio/SelectChannelEndPoint.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java b/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java index a8db4ec100b..3ba70b035b2 100644 --- a/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java +++ b/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java @@ -333,9 +333,10 @@ public class SelectChannelEndPoint extends ChannelEndPoint implements AsyncEndPo if (l==0 && ( header!=null && header.hasContent() || buffer!=null && buffer.hasContent() || trailer!=null && trailer.hasContent())) { synchronized (this) - { - if (_dispatched) - _writable=false; + { + _writable=false; + if (!_dispatched) + updateKey(); } } else if (l>0) @@ -358,9 +359,10 @@ public class SelectChannelEndPoint extends ChannelEndPoint implements AsyncEndPo if (l==0 && buffer!=null && buffer.hasContent()) { synchronized (this) - { - if (_dispatched) - _writable=false; + { + _writable=false; + if (!_dispatched) + updateKey(); } } else if (l>0)