410469 - UpgradeRequest is sent twice when using SSL, one fails warning about WritePendingException
+ Removing manual connectionOpened() in favor of letting endpoint notify.
This commit is contained in:
parent
91f6170c40
commit
536b8d9504
|
@ -140,7 +140,7 @@ public class UpgradeConnection extends AbstractConnection
|
|||
public void onOpen()
|
||||
{
|
||||
super.onOpen();
|
||||
// TODO: handle timeout
|
||||
// TODO: handle timeout?
|
||||
getExecutor().execute(new SendUpgradeRequest());
|
||||
}
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ import java.io.IOException;
|
|||
import java.nio.channels.SelectionKey;
|
||||
import java.nio.channels.SocketChannel;
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
import javax.net.ssl.SSLEngine;
|
||||
|
||||
import org.eclipse.jetty.io.ByteBufferPool;
|
||||
|
@ -87,7 +88,6 @@ public class WebSocketClientSelectorManager extends SelectorManager
|
|||
Connection connection = newUpgradeConnection(channel,sslEndPoint,connectPromise);
|
||||
sslEndPoint.setIdleTimeout(connectPromise.getClient().getMaxIdleTimeout());
|
||||
sslEndPoint.setConnection(connection);
|
||||
connectionOpened(connection);
|
||||
return sslConnection;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue