jira-importer opened a new issue, #1188: URL: https://github.com/apache/httpcomponents-core/issues/1188
**[Carter Kozak](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ckozak)** opened **[HTTPCORE-640](https://issues.apache.org/jira/browse/HTTPCORE-640?redirect=false)** and commented Response out of order detection relies on socket.getInputStream().available(), which works for non-ssl sockets on java releases up to and including 12. This approach appears not to work as expected on java 13 and newer due to the socket refactor https://openjdk.java.net/jeps/353 as the socket inputstream is no longer a FileInputStream. My proposal is to update the check from "socket instanceof SSLSocket" to "!(socketInputStream instanceof FileInputStream)" to take into account both jep353 and the fast path on plain connections in older java versions. --- **Affects:** 5.0.1 -- 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]
