Mode: add scaffolding for combined network mode name (net) in help; introduce MultiTransport

This commit is contained in:
Vladyslav Doloman
2025-10-08 00:53:14 +03:00
parent 7337c27898
commit b94aac71f8

3
run.py
View File

@@ -73,7 +73,7 @@ if __name__ == "__main__":
try:
if any(a in ("-h", "--help") for a in sys.argv[1:]):
print(
"Usage: python run.py [--mode mem|quic|wt] [--log-level LEVEL] [--run-seconds N]\n"
"Usage: python run.py [--mode mem|quic|wt|net] [--log-level LEVEL] [--run-seconds N]\n"
" TLS (for wt/quic): set QUIC_CERT/QUIC_KEY or WT_CERT/WT_KEY env vars\n"
" WT static server (MODE=wt): STATIC=1 [STATIC_HOST/PORT/ROOT]\n"
"Examples:\n MODE=wt QUIC_CERT=cert.pem QUIC_KEY=key.pem python run.py\n MODE=mem python run.py"
@@ -113,3 +113,4 @@ async def _run_tasks_with_optional_timeout(tasks):
for t in tasks:
t.cancel()
await asyncio.gather(*tasks, return_exceptions=True)