jetty 9: Improved NPN client connection to perform the connection replacement from onFillable() rather than from NPN callback methods.

This commit is contained in:
Greg Wilkins 2012-10-02 15:49:25 -07:00
parent 604f4985d3
commit 435f8a6db8

View File

@ -153,13 +153,6 @@ public class SPDYClient
return FlowControlStrategyFactory.newFlowControlStrategy(version);
}
public void replaceConnection(EndPoint endPoint, Connection connection)
{
endPoint.getConnection().onClose();
endPoint.setConnection(connection);
connection.onOpen();
}
public static class Factory extends ContainerLifeCycle
{
private final Queue<Session> sessions = new ConcurrentLinkedQueue<>();