Index: httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java (revision 4) +++ httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java (revision ) @@ -310,7 +310,7 @@ newMask = EventMask.READ_WRITE; break; case NEED_UNWRAP: - newMask = EventMask.READ | (this.appEventMask & EventMask.WRITE); + newMask = EventMask.READ; break; case NOT_HANDSHAKING: newMask = this.appEventMask; Index: httpcore-nio/src/test/java/org/apache/http/HttpCoreNIOTestBase.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- httpcore-nio/src/test/java/org/apache/http/HttpCoreNIOTestBase.java (revision 6) +++ httpcore-nio/src/test/java/org/apache/http/HttpCoreNIOTestBase.java (revision ) @@ -55,7 +55,6 @@ /** * Base class for all HttpCore NIO tests - * */ public abstract class HttpCoreNIOTestBase { @@ -74,6 +73,11 @@ protected abstract NHttpConnectionFactory createClientConnectionFactory( HttpParams params) throws Exception; + protected NHttpConnectionFactory createClientSSLConnectionFactory( + HttpParams params) throws Exception { + return null; + } + public void initServer() throws Exception { this.serverParams = new SyncBasicHttpParams(); this.serverParams @@ -115,7 +119,8 @@ public void initConnPool() throws Exception { this.connpool = new BasicNIOConnPool( this.client.getIoReactor(), - new BasicNIOConnFactory(createClientConnectionFactory(this.clientParams)), + new BasicNIOConnFactory(createClientConnectionFactory(this.clientParams), + createClientSSLConnectionFactory(this.clientParams)), this.clientParams); this.executor = new HttpAsyncRequester( this.clientHttpProc,