removed redundant setConnection
This commit is contained in:
parent
7504d24e9e
commit
144195d435
|
@ -273,7 +273,7 @@ class SelectConnector extends AbstractLifeCycle implements HttpClient.Connector
|
|||
((SelectChannelEndPoint)_endp).setConnection(sslConnection);
|
||||
|
||||
_endp=sslConnection.getSslEndPoint();
|
||||
sslConnection.setConnection(connection);
|
||||
sslConnection.getSslEndPoint().setConnection(connection);
|
||||
|
||||
LOG.debug("upgrade {} to {} for {}",this,sslConnection,connection);
|
||||
}
|
||||
|
|
|
@ -98,18 +98,6 @@ public class SslConnection extends AbstractConnection implements AsyncConnection
|
|||
_aEndp=(AsyncEndPoint)endp;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
public synchronized void setConnection(AsyncConnection connection)
|
||||
{
|
||||
_connection=connection;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
public synchronized AsyncConnection getConnection()
|
||||
{
|
||||
return _connection;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/**
|
||||
* @return True if SSL re-negotiation is allowed (default false)
|
||||
|
|
|
@ -49,7 +49,7 @@ public class SelectChannelEndPointSslTest extends SelectChannelEndPointTest
|
|||
SslConnection connection = new SslConnection(engine,endpoint);
|
||||
|
||||
AsyncConnection delegate = super.newConnection(channel,connection.getSslEndPoint());
|
||||
connection.setConnection(delegate);
|
||||
connection.getSslEndPoint().setConnection(delegate);
|
||||
return connection;
|
||||
}
|
||||
|
||||
|
|
|
@ -559,7 +559,7 @@ public class SslSelectChannelConnector extends SelectChannelConnector implements
|
|||
SslConnection connection = new SslConnection(engine,endpoint);
|
||||
|
||||
AsyncConnection delegate = super.newConnection(channel,connection.getSslEndPoint());
|
||||
connection.setConnection(delegate);
|
||||
connection.getSslEndPoint().setConnection(delegate);
|
||||
connection.setAllowRenegotiate(_sslContextFactory.isAllowRenegotiate());
|
||||
return connection;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue