docs: public void changeSocket(Socket socket) throws IOException {
      this.connection = socket;
  
      // Submitted by Jason Venner <jason@idiom.com>. Disable Nagle
      // as we are selective about flushing output only when we
      // really need to.
      connection.setTcpNoDelay(true);
  
      // Buffer sizes submitted by Sverre H Huseby <sverrehu@online.no>
      pgInput = new VisibleBufferedInputStream(connection.getInputStream(), 8192);
      pgOutput = new BufferedOutputStream(connection.getOutputStream(), 8192);
  
      if (encoding != null) {
        setEncoding(encoding);
      }
    }