code: def write_eof(self):
          
          self._check_status()
          if not self._writable:
              raise TransportError('transport is not writable')
          if self._closing:
              raise TransportError('transport is closing')
          try:
              self._handle.shutdown(self._on_write_complete)
          except pyuv.error.UVError as e:
              self._error = TransportError.from_errno(e.args[0])
              self.abort()
              raise compat.saved_exc(self._error)
          self._write_buffer_size += 1
docs: Shut down the write direction of the transport.