hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1334618 - in /httpcomponents/httpcore/trunk: RELEASE_NOTES.txt httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java
Date Sun, 06 May 2012 13:06:10 GMT
Author: olegk
Date: Sun May  6 13:06:09 2012
New Revision: 1334618

URL: http://svn.apache.org/viewvc?rev=1334618&view=rev
Log:
HTTPCORE-298: Fixed non-blocking SSLIOSession state can getting out of sync with the underlying
IOSession in case the I/O session is terminated by the I/O reactor rather than by the protocol
handler
Contributed by Sandeep Tamhankar <sandman at electric-cloud.com>

Modified:
    httpcomponents/httpcore/trunk/RELEASE_NOTES.txt
    httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java

Modified: httpcomponents/httpcore/trunk/RELEASE_NOTES.txt
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/RELEASE_NOTES.txt?rev=1334618&r1=1334617&r2=1334618&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/RELEASE_NOTES.txt (original)
+++ httpcomponents/httpcore/trunk/RELEASE_NOTES.txt Sun May  6 13:06:09 2012
@@ -1,6 +1,11 @@
 Changes since 4.2
 -------------------
 
+* [HTTPCORE-298] Fixed non-blocking SSLIOSession state can getting out of sync with the underlying
+  IOSession in case the I/O session is terminated by the I/O reactor rather than by the protocol
+  handler. 
+  Contributed by Sandeep Tamhankar <sandman at electric-cloud.com>
+
 * Fixed NPE in StringEntity constructor thrown if ContentType#getCharset is null.
   Contributed by Oleg Kalnichevski <olegk at apache.org>
 

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java?rev=1334618&r1=1334617&r2=1334618&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java
Sun May  6 13:06:09 2012
@@ -488,7 +488,7 @@ public class SSLIOSession implements IOS
     }
 
     public boolean isClosed() {
-        return this.status >= CLOSING;
+        return this.status >= CLOSING || this.session.isClosed();
     }
 
     public ByteChannel channel() {



Mime
View raw message