code: protected void shutdownOutput() throws IOException {
        if (fd != null && fd.valid()) {
            socketShutdown(SHUT_WR);
            shut_wr = true;
        }
      }
docs: Shutdown write-half of the socket connection;