jira-importer opened a new issue, #1090:
URL: https://github.com/apache/httpcomponents-core/issues/1090

   **[Hunter 
Presnall](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=hpresnall)**
 opened 
**[HTTPCORE-605](https://issues.apache.org/jira/browse/HTTPCORE-605?redirect=false)**
 and commented
   
   When the server half-closes the connection, the http client gets stuck in an 
infinite loop with a writable selection key, but no data to send. They 
selection key is never cleared and empty buffers are continually sent.
   
   The stack trace when this happens is:
   
   `"I/O dispatcher 2" #30 prio=5 os_prio=0 tid=0x00007fd7cc0a5000 nid=0x2c 
runnable [0x00007fd7db6fb000]"I/O dispatcher 2" #30 prio=5 os_prio=0 
tid=0x00007fd7cc0a5000 nid=0x2c runnable [0x00007fd7db6fb000]   
java.lang.Thread.State: RUNNABLE at sun.nio.ch.NativeThread.current(Native 
Method) at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:468) - 
locked <0x0000000091fb63b0> (a java.lang.Object) - locked <0x0000000091fb63a0> 
(a java.lang.Object) at 
org.apache.http.nio.reactor.ssl.SSLIOSession.sendEncryptedData(SSLIOSession.java:423)
 at 
org.apache.http.nio.reactor.ssl.SSLIOSession.outboundTransport(SSLIOSession.java:549)
 - locked <0x0000000091fb6630> (a org.apache.http.nio.reactor.ssl.SSLIOSession) 
at 
org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(AbstractIODispatch.java:154)
 at 
org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:188) 
at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:341)
 at or
 
g.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315)
 at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276)
 at 
org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104) 
at 
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:591)
 at java.lang.Thread.run(Thread.java:748)`
   
    
   
   This is similar to 
[HTTPCORE-528](https://issues.apache.org/jira/browse/HTTPCORE-528)  which was 
fixed in 4.4.10. When we upgraded the client to 4.4.11, this new issue 
appeared. I suspect similar handling where there is write interest but no data 
needs to remove the write mask.
   
   
   ---
   
   **Affects:** 4.4.11
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to