Description of problem: Experiencing BUFFER_OVERFLOW in JBoss when using NIO. Buffer is not expanded so request fails. Version-Release number of selected component (if applicable): 6.4.0 How reproducible: Always, when using NIO and HTTPS. Steps to Reproduce: 1. Use org.apache.coyote.http11.Http11NioProtocol and HTTPS 2. Make a request that has a packet size 16KB+ 3. Check logs for "BWEB003064: Error during blocking read: java.io.IOException: JBWEB002048: Unable to unwrap data, invalid status BUFFER_OVERFLOW" Actual results: Failure to process request, resulting in failed request Expected results: Expected request to succeed just as it would if not using NIO Additional info: Issue happens even when using `-Djsse.SSLEngine.acceptLargeFragments=true`. I'll attached the .war I used to reproduce. 16:26:50,774 DEBUG [org.apache.coyote.http11] (http-/127.0.0.1:8443-13) JBWEB003064: Error during blocking read: java.io.IOException: JBWEB002048: Unable to unwrap data, invalid status BUFFER_OVERFLOW at org.apache.tomcat.util.net.jsse.SecureNioChannel.unwrap(SecureNioChannel.java:591) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.tomcat.util.net.jsse.SecureNioChannel.readBytes(SecureNioChannel.java:134) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.coyote.http11.InternalNioInputBuffer.fill0(InternalNioInputBuffer.java:515) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.coyote.http11.InternalNioInputBuffer.fill(InternalNioInputBuffer.java:469) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.coyote.http11.InternalNioInputBuffer.parseRequestLine(InternalNioInputBuffer.java:316) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:290) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:911) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.tomcat.util.net.NioEndpoint$ChannelProcessor.run(NioEndpoint.java:936) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60] at org.apache.tomcat.util.net.NioEndpoint$DefaultThreadFactory$1$1.run(NioEndpoint.java:1249) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]
Created attachment 1076723 [details] reproducer war.
For what is it worth, using org.apache.coyote.http11.Http11AprProtocol, SSL, and WebSockets seems to work without issue. Issue only seems to be present in SSL related Nio code.
r2629 in web.
Verified with EAP 6.4.5.CP.CR1.
*** Bug 1275403 has been marked as a duplicate of this bug. ***
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.