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:
Joakim Erdfelt 2013-06-11 08:56:53 -07:00
parent 91f6170c40
commit 536b8d9504
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ public class UpgradeConnection extends AbstractConnection
public void onOpen()
{
super.onOpen();
// TODO: handle timeout
// TODO: handle timeout?
getExecutor().execute(new SendUpgradeRequest());
}

View File

@ -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