code: def is_sock_ok(self, timeout_select):
          
          self._socket_lock.acquire()
          try:
              ret = self._is_socket_ok(timeout_select)
          finally:
              self._socket_lock.release()
          return ret
docs: check if socket is OK