remove unneeded parameter
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
parent
a2cb2a69e6
commit
2e5ff2ddc3
|
@ -54,7 +54,7 @@ public class ClientQuicConnection extends QuicConnection
|
|||
{
|
||||
InetSocketAddress remoteAddress = (InetSocketAddress)context.get(ClientDatagramConnector.REMOTE_SOCKET_ADDRESS_CONTEXT_KEY);
|
||||
QuicheConnection quicheConnection = QuicheConnection.connect(getQuicheConfig(), remoteAddress);
|
||||
QuicSession session = new ClientQuicSession(getExecutor(), getScheduler(), getByteBufferPool(), null, quicheConnection, this, remoteAddress, context);
|
||||
QuicSession session = new ClientQuicSession(getExecutor(), getScheduler(), getByteBufferPool(), quicheConnection, this, remoteAddress, context);
|
||||
pendingSessions.put(remoteAddress, session);
|
||||
session.flush(); // send the response packet(s) that connect generated.
|
||||
if (LOG.isDebugEnabled())
|
||||
|
|
|
@ -33,9 +33,9 @@ public class ClientQuicSession extends QuicSession
|
|||
{
|
||||
private final Map<String, Object> context;
|
||||
|
||||
protected ClientQuicSession(Executor executor, Scheduler scheduler, ByteBufferPool byteBufferPool, QuicheConnectionId quicheConnectionId, QuicheConnection quicheConnection, QuicConnection connection, InetSocketAddress remoteAddress, Map<String, Object> context)
|
||||
protected ClientQuicSession(Executor executor, Scheduler scheduler, ByteBufferPool byteBufferPool, QuicheConnection quicheConnection, QuicConnection connection, InetSocketAddress remoteAddress, Map<String, Object> context)
|
||||
{
|
||||
super(executor, scheduler, byteBufferPool, quicheConnectionId, quicheConnection, connection, remoteAddress);
|
||||
super(executor, scheduler, byteBufferPool, quicheConnection, connection, remoteAddress);
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
|
|
|
@ -77,7 +77,7 @@ public class End2EndClientTest
|
|||
}
|
||||
|
||||
@Test
|
||||
public void name() throws Exception
|
||||
public void simple() throws Exception
|
||||
{
|
||||
HttpClientTransportOverQuic transport = new HttpClientTransportOverQuic();
|
||||
HttpClient client = new HttpClient(transport);
|
||||
|
|
|
@ -56,11 +56,10 @@ public abstract class QuicSession
|
|||
private InetSocketAddress remoteAddress;
|
||||
private QuicheConnectionId quicheConnectionId;
|
||||
|
||||
protected QuicSession(Executor executor, Scheduler scheduler, ByteBufferPool byteBufferPool, QuicheConnectionId quicheConnectionId, QuicheConnection quicheConnection, QuicConnection connection, InetSocketAddress remoteAddress)
|
||||
protected QuicSession(Executor executor, Scheduler scheduler, ByteBufferPool byteBufferPool, QuicheConnection quicheConnection, QuicConnection connection, InetSocketAddress remoteAddress)
|
||||
{
|
||||
this.scheduler = scheduler;
|
||||
this.byteBufferPool = byteBufferPool;
|
||||
this.quicheConnectionId = quicheConnectionId;
|
||||
this.quicheConnection = quicheConnection;
|
||||
this.connection = connection;
|
||||
this.remoteAddress = remoteAddress;
|
||||
|
|
|
@ -79,7 +79,7 @@ public class ServerQuicConnection extends QuicConnection
|
|||
}
|
||||
else
|
||||
{
|
||||
QuicSession session = new ServerQuicSession(getExecutor(), getScheduler(), byteBufferPool, null, quicheConnection, this, remoteAddress, connector);
|
||||
QuicSession session = new ServerQuicSession(getExecutor(), getScheduler(), byteBufferPool, quicheConnection, this, remoteAddress, connector);
|
||||
session.flush(); // send the response packet(s) that tryAccept generated.
|
||||
return session;
|
||||
}
|
||||
|
|
|
@ -32,9 +32,9 @@ public class ServerQuicSession extends QuicSession
|
|||
{
|
||||
private final Connector connector;
|
||||
|
||||
protected ServerQuicSession(Executor executor, Scheduler scheduler, ByteBufferPool byteBufferPool, QuicheConnectionId quicheConnectionId, QuicheConnection quicheConnection, QuicConnection connection, InetSocketAddress remoteAddress, Connector connector)
|
||||
protected ServerQuicSession(Executor executor, Scheduler scheduler, ByteBufferPool byteBufferPool, QuicheConnection quicheConnection, QuicConnection connection, InetSocketAddress remoteAddress, Connector connector)
|
||||
{
|
||||
super(executor, scheduler, byteBufferPool, quicheConnectionId, quicheConnection, connection, remoteAddress);
|
||||
super(executor, scheduler, byteBufferPool, quicheConnection, connection, remoteAddress);
|
||||
this.connector = connector;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue