@Override
 public void setConnection(Connection connection) {
   if (connection instanceof AbstractConnection) {
     AbstractConnection a = (AbstractConnection) connection;
     if (a.getInputBufferSize() < _sslEngine.getSession().getApplicationBufferSize())
       a.setInputBufferSize(_sslEngine.getSession().getApplicationBufferSize());
   }
   super.setConnection(connection);
 }
 @Override
 public void onOpen() {
   super.onOpen();
   try {
     getEndPoint().flush(BufferUtil.EMPTY_BUFFER);
     if (completed) replaceConnection();
     else fillInterested();
   } catch (IOException e) {
     throw new RuntimeIOException(e);
   }
 }
 @Override
 public void onOpen() {
   try {
     // Begin the handshake
     _sslEngine.beginHandshake();
     super.onOpen();
     getDecryptedEndPoint().getConnection().onOpen();
   } catch (SSLException x) {
     getEndPoint().close();
     throw new RuntimeIOException(x);
   }
 }
 @Override
 public void onClose() {
   _decryptedEndPoint.getConnection().onClose();
   super.onClose();
 }
Beispiel #5
0
 @Override
 public void onOpen() {
   super.onOpen();
   fillInterested();
 }
 @Override
 public void onOpen() {
   super.onOpen();
   // TODO: handle timeout
   getExecutor().execute(new SendUpgradeRequest());
 }
 @Override
 public void onClose() {
   softClose();
   super.onClose();
 }
 @Override
 public void onOpen() {
   super.onOpen();
   fillInterested();
   promise.succeeded(this);
 }
 @Override
 public void onOpen() {
   super.onOpen();
   writeSocks4Connect();
 }