INNER CODE UNIT · Python

deadline

NextWeb4/lan-file-transfer · lan_transfer/server.py:49

        deadline = time.time() + 5
        while time.time() < deadline:
            if self._server.started:
                LOGGER.info(
                    "HTTP service started. User URL: %s Admin URL: %s",
                    self.config.user_url,
                    self.config.admin_url,
                )
                return
            if not self._thread.is_alive():
                self._server = None
                self._thread = None
                raise RuntimeError("HTTP service stopped during startup.")
            time.sleep(0.05)
        timeout_error = RuntimeError("HTTP service did not report ready within 5 seconds.")
        try:
            self.stop()
        except Exception as exc:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…