fix buffer too short exception
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
parent
81e3546b14
commit
d12550f88a
|
@ -143,13 +143,14 @@ public class QuicConnection extends AbstractConnection
|
|||
{
|
||||
session = new QuicSession(connector, quicheConnection, this, remoteAddress);
|
||||
sessions.putIfAbsent(quicheConnectionId, session);
|
||||
session.flush();
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("created QUIC session {}", session);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if (session != null)
|
||||
session.process(remoteAddress, cipherBuffer);
|
||||
session.process(remoteAddress, cipherBuffer);
|
||||
}
|
||||
}
|
||||
catch (Throwable x)
|
||||
|
|
|
@ -200,7 +200,7 @@ public class ServerDatagramEndPoint extends IdleTimeout implements EndPoint, Man
|
|||
public Runnable onSelected()
|
||||
{
|
||||
// TODO: need to handle both read and write events.
|
||||
selectionKey.interestOps(~SelectionKey.OP_READ);
|
||||
//selectionKey.interestOps(~SelectionKey.OP_READ);
|
||||
|
||||
|
||||
return () ->
|
||||
|
|
Loading…
Reference in New Issue