add config
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 10s
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 10s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user