Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimone Bordet2011-10-10 17:09:03 +0000
committerSimone Bordet2011-10-10 17:09:03 +0000
commit3476887f8a1e2281d9ec7ea85a0d3f4dd5017cc8 (patch)
treea710f44d94f9c98f64ac2ab49ef83011305da57b
parentea56eaff005e6b14c3f3464adf95e1e13742df68 (diff)
downloadorg.eclipse.jetty.project-3476887f8a1e2281d9ec7ea85a0d3f4dd5017cc8.tar.gz
org.eclipse.jetty.project-3476887f8a1e2281d9ec7ea85a0d3f4dd5017cc8.tar.xz
org.eclipse.jetty.project-3476887f8a1e2281d9ec7ea85a0d3f4dd5017cc8.zip
Forcing call to super.close() even if _closing is already set.
-rw-r--r--jetty-io/src/main/java/org/eclipse/jetty/io/nio/SslSelectChannelEndPoint.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SslSelectChannelEndPoint.java b/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SslSelectChannelEndPoint.java
index d0b9bfb9ae..d0e06f6e6f 100644
--- a/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SslSelectChannelEndPoint.java
+++ b/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SslSelectChannelEndPoint.java
@@ -338,15 +338,16 @@ public class SslSelectChannelEndPoint extends SelectChannelEndPoint
@Override
public void close() throws IOException
{
- if (_closing)
- return;
-
- _closing=true;
- LOG.debug("{} close",_session);
+ // For safety we always force a close calling super
try
{
- _engine.closeOutbound();
- process(null,null);
+ if (!_closing)
+ {
+ _closing=true;
+ LOG.debug("{} close",_session);
+ _engine.closeOutbound();
+ process(null,null);
+ }
}
catch (IOException e)
{

Back to the top