add config
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 10s

This commit is contained in:
2026-03-07 10:44:45 +01:00
parent 8e6c759cb8
commit c19fab4d32
8 changed files with 140 additions and 21 deletions

View File

@@ -12,6 +12,7 @@ import threading
from pathlib import Path
from typing import Iterable, Optional
from src.config import settings
from src.utilities.packet_tracker import packet_tracker
logger = logging.getLogger("bridge_telemetry")
@@ -87,14 +88,14 @@ class BridgeTelemetryManager:
if process is not None and process.poll() is None:
try:
process.send_signal(signal.SIGTERM)
process.wait(timeout=3)
process.wait(timeout=settings.telemetry_process_stop_timeout_seconds)
except subprocess.TimeoutExpired:
process.kill()
except Exception:
logger.exception("Failed to stop bridge telemetry collector cleanly")
if reader is not None and reader.is_alive():
reader.join(timeout=2)
reader.join(timeout=settings.telemetry_reader_join_timeout_seconds)
def _read_loop(self, process: subprocess.Popen[str]) -> None:
stdout = process.stdout