code: def _send_loop(self):
          
          while True:
              try:
                  line = self.oqueue.get().splitlines()[0][:500]
                  self._obuffer += line + '\r\n'
                  while self._obuffer:
                      sent = self._socket.send(self._obuffer)
                      self._obuffer = self._obuffer[sent:]
              except Exception:
                  break
docs: Waits for data in the output queue to send.