-
Bug
-
Resolution: Done
-
Major
-
2.0.16.Final
-
None
-
-
[~flavia.rainone], [~swd847] - I've resolved this one as linked PR has been merged. Raise your voice if there was any extra work expected.
Infinite loop in :
package io.undertow.protocols.ssl;
public class SslConduit implements StreamSourceConduit, StreamSinkConduit {
try {
SSLEngineResult result = null;
while (result == null || (result.getHandshakeStatus() == SSLEngineResult.HandshakeStatus.NEED_WRAP && result.getStatus() != SSLEngineResult.Status.BUFFER_OVERFLOW))
else
{ result = engine.wrap(userBuffers, off, len, wrappedData.getBuffer()); }}
----------
package io.undertow.server;
/**
A byte buffer pool that supports reference counted pools.
*
TODO: move this somewhere more appropriate
*
@author Stuart Douglas
*/
public class DefaultByteBufferPool implements ByteBufferPool {
...
@Override
public ByteBuffer getBuffer()
return buffer;
}
Looping on while condition with the following state :
HandshakeStatus = NEED_WRAP / Status = OK / bytesConsumed = 0 / bytesProduced = 0
Stake trace :
"XNIO-1 I/O-1" #25 prio=5 os_prio=0 cpu=3989340.17ms elapsed=64540.00s tid=0x00007fcd60cd7000 nid=0x7c0f runnable [0x00007fcd29a56000]
java.lang.Thread.State: RUNNABLE
at io.undertow.protocols.ssl.SslConduit.doWrap(SslConduit.java:898)
at io.undertow.protocols.ssl.SslConduit.doUnwrap(SslConduit.java:671)
at io.undertow.protocols.ssl.SslConduit.read(SslConduit.java:567)
at org.xnio.conduits.ConduitStreamSourceChannel.read(ConduitStreamSourceChannel.java:127)
at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:158)
at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:136)
at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:59)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
at io.undertow.protocols.ssl.SslConduit$SslReadReadyHandler.readReady(SslConduit.java:1175)
at io.undertow.protocols.ssl.SslConduit$SslWriteReadyHandler.writeReady(SslConduit.java:1250)
at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:93)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:561)
- blocks
-
WFCORE-4172 Add support for TLS 1.3
- Closed
- is related to
-
UNDERTOW-1406 WebSocketClient13TestCase gets stuck with JDK-11 early build 28
- Closed
-
UNDERTOW-1410 SimpleSSLTestCase fails with JDK11 early build
- Closed
-
JDK-8208526 Loading...
- relates to
-
WFWIP-155 WildFly gets stuck with TLSv1.3 on JDK 11
- Resolved