jira-importer opened a new issue, #1527: URL: https://github.com/apache/httpcomponents-core/issues/1527
**[Isaac Cruz Ballesteros](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=icruz)** opened **[HTTPCORE-719](https://issues.apache.org/jira/browse/HTTPCORE-719?redirect=false)** and commented Initializing an async HTTPS server with setIOSessionDecorator makes library to enter on an infinite loop with following exception when client closes connection abruptly: ``` java.net.SocketException: Connection reset at sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketChannelImpl.java:367) ~[?:?] at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:383) ~[?:?] at org.apache.hc.core5.reactor.IOSessionImpl.read(IOSessionImpl.java:202) ~[httpcore5-5.1.4.jar:5.1.4] at org.apache.hc.core5.reactor.ssl.SSLIOSession.receiveEncryptedData(SSLIOSession.java:519) ~[httpcore5-5.1.4.jar:5.1.4] at org.apache.hc.core5.reactor.ssl.SSLIOSession.access$200(SSLIOSession.java:72) ~[httpcore5-5.1.4.jar:5.1.4] at org.apache.hc.core5.reactor.ssl.SSLIOSession$1.inputReady(SSLIOSession.java:170) ~[httpcore5-5.1.4.jar:5.1.4] at org.apache.hc.core5.reactor.InternalDataChannel.onIOEvent(InternalDataChannel.java:133) [httpcore5-5.1.4.jar:5.1.4] at org.apache.hc.core5.reactor.InternalChannel.handleIOEvent(InternalChannel.java:51) [httpcore5-5.1.4.jar:5.1.4] at org.apache.hc.core5.reactor.SingleCoreIOReactor.processEvents(SingleCoreIOReactor.java:178) [httpcore5-5.1.4.jar:5.1.4] at org.apache.hc.core5.reactor.SingleCoreIOReactor.doExecute(SingleCoreIOReactor.java:127) [httpcore5-5.1.4.jar:5.1.4] at org.apache.hc.core5.reactor.AbstractSingleCoreIOReactor.execute(AbstractSingleCoreIOReactor.java:85) [httpcore5-5.1.4.jar:5.1.4] at org.apache.hc.core5.reactor.IOReactorWorker.run(IOReactorWorker.java:44) [httpcore5-5.1.4.jar:5.1.4] at java.lang.Thread.run(Thread.java:832) [?:?] ``` I have attached a maven project with a simple example, it initializes server and connects from a client. It reproduces when client does not consume what server writes. If you comment out line 75 of HttpsServer.java, then it works correctly. --- **Affects:** 5.1.4 **Attachments:** - [infiniteLoop.zip](https://issues.apache.org/jira/secure/attachment/13047030/infiniteLoop.zip) (_42.28 kB_) -- 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]
