docs: def _init_socket(self):
          '''Initialises the socket used for communicating with a q service,'''
          try:
              self._connection = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
              self._connection.connect((self.host, self.port))
              self._connection.settimeout(self.timeout)
              self._connection_file = self._connection.makefile('b')
          except:
              self._connection = None
              self._connection_file = None
              raise