code: def write(self, data):
          '''
          Write some bytes to the transport.
          '''
          # MUST use a lock here else gevent could raise an exception if 2
          # greenlets try to write at the same time. I was hoping that
          # sendall() would do that blocking for me, but I guess not. May
          # require an eventsocket-like buffer to speed up under high load.
          self._write_lock.acquire()
          try:
              return super(GeventTransport, self).write(data)
          finally:
              self._write_lock.release(f write(self, data):
          '''
          Write some bytes to the transport.
          '''
          # MUST use a lock here else gevent could raise an exception if 2
          # greenlets try to write at the same time. I was hoping that
          # sendall() would do that blocking for me, but I guess not. May
          # require an eventsocket-like buffer to speed up under high load.
          self._write_lock.acquire()
          try:
              return super(GeventTransport, self).write(data)
          finally:
              self._write_lock.release()
docs: Write some bytes to the transport.