code: def shutdown_wr(self):
          
          if self._sock_send is not None:
              self._sock_send.close()
          else:
              return self.shutdown(socket.SHUT_WR)
docs: Send a shutdown signal for writing - you may no longer write to this
          socket.