Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
Ludovic Orban 2021-03-23 12:15:36 +01:00 committed by Simone Bordet
parent 669ae8ff1b
commit e8376a1a21
2 changed files with 2 additions and 1 deletions

View File

@ -76,6 +76,7 @@ public class ClientDatagramConnector extends ContainerLifeCycle implements IClie
.flatMap(protocol -> protocol.getProtocols().stream())
.toArray(String[]::new);
// TODO make the QuicheConfig configurable
quicheConfig = new QuicheConfig();
quicheConfig.setApplicationProtos(applicationProtos);
quicheConfig.setMaxIdleTimeout(5000L);

View File

@ -50,9 +50,9 @@ public class QuicConnection extends AbstractConnection
private final Scheduler scheduler;
private final ByteBufferPool byteBufferPool;
private final Map<String, Object> context;
private final QuicheConfig quicheConfig;
private final Flusher flusher = new Flusher();
private final Map<String, Object> context;
public QuicConnection(Executor executor, Scheduler scheduler, ByteBufferPool byteBufferPool, EndPoint endPoint, Map<String, Object> context, QuicheConfig quicheConfig)
{