summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/serve
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
commit59203c63bb777a3bacec32fb8830fba33540e809 (patch)
tree58298e711c0ff0575818c30485b44a2f21bf28a0 /testing/web-platform/tests/tools/serve
parentAdding upstream version 126.0.1. (diff)
downloadfirefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz
firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/tools/serve')
-rw-r--r--testing/web-platform/tests/tools/serve/serve.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/testing/web-platform/tests/tools/serve/serve.py b/testing/web-platform/tests/tools/serve/serve.py
index 300f8270a6..42d8091802 100644
--- a/testing/web-platform/tests/tools/serve/serve.py
+++ b/testing/web-platform/tests/tools/serve/serve.py
@@ -30,7 +30,7 @@ from wptserve import config
from wptserve.handlers import filesystem_path, wrap_pipeline
from wptserve.response import ResponseHeaders
from wptserve.utils import get_port, HTTPException, http2_compatible
-from mod_pywebsocket import standalone as pywebsocket
+from pywebsocket3 import standalone as pywebsocket
EDIT_HOSTS_HELP = ("Please ensure all the necessary WPT subdomains "
@@ -829,7 +829,8 @@ def start_http_server(logger, host, port, paths, routes, bind_address, config, *
key_file=None,
certificate=None,
latency=kwargs.get("latency"))
- except Exception:
+ except Exception as error:
+ logger.critical(f"start_http_server: Caught exception from wptserve.WebTestHttpd: {error}")
startup_failed(logger)
@@ -847,7 +848,8 @@ def start_https_server(logger, host, port, paths, routes, bind_address, config,
certificate=config.ssl_config["cert_path"],
encrypt_after_connect=config.ssl_config["encrypt_after_connect"],
latency=kwargs.get("latency"))
- except Exception:
+ except Exception as error:
+ logger.critical(f"start_https_server: Caught exception from wptserve.WebTestHttpd: {error}")
startup_failed(logger)
@@ -868,7 +870,8 @@ def start_http2_server(logger, host, port, paths, routes, bind_address, config,
encrypt_after_connect=config.ssl_config["encrypt_after_connect"],
latency=kwargs.get("latency"),
http2=True)
- except Exception:
+ except Exception as error:
+ logger.critical(f"start_http2_server: Caught exception from wptserve.WebTestHttpd: {error}")
startup_failed(logger)
@@ -935,7 +938,8 @@ def start_ws_server(logger, host, port, paths, routes, bind_address, config, **k
config.paths["ws_doc_root"],
bind_address,
ssl_config=None)
- except Exception:
+ except Exception as error:
+ logger.critical(f"start_ws_server: Caught exception from WebSocketDomain: {error}")
startup_failed(logger)
@@ -947,7 +951,8 @@ def start_wss_server(logger, host, port, paths, routes, bind_address, config, **
config.paths["ws_doc_root"],
bind_address,
config.ssl_config)
- except Exception:
+ except Exception as error:
+ logger.critical(f"start_wss_server: Caught exception from WebSocketDomain: {error}")
startup_failed(logger)