code: private void initSocket()
      throws IOException
    {
      _idleTimeout = _port.getKeepaliveTimeout();
  
      _port.ssl(_socket);
  
      writeStream().init(_socket.stream());
  
      // ReadStream cannot use getWriteStream or auto-flush
      // because of duplex mode
      // ReadStream is = getReadStream();
      _readStream.init(_socket.stream());
  
      if (log.isLoggable(Level.FINEST)) {
        log.finest(dbgId() + "starting connection " + this
                   + ", total=" + _port.getConnectionCount());
      }
    }
docs: Initialize the socket for a new connection