mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-02-11 10:04:22 +01:00
BOSWatch 3 Core Repo - Documentation at http://docs.boswatch.de
Updated the Telegram plugin to handle high-load scenarios and prevent resource exhaustion. Key focus areas were message formatting, concurrency management, and configuration resilience. - Implement bounded message queue (max 100) with non-blocking drops to prevent memory leaks - Add graceful shutdown logic with worker thread joining and queue draining - Add self-healing initialization (`_ensure_sender`) to handle race conditions during startup - Implement robust escaping/sanitization for HTML and MarkdownV2 parse modes - Enforce Telegram's 4096 character limit with graceful truncation - Enhance error diagnostics for API responses (Rate limiting, 4xx/5xx errors) - Validate and sanitize GPS coordinates (range and type checking) - Decouple logging from global config by using module-level logger Behavioral Changes: - BREAKING: Location messages now require `coordinates: true` in config (previously default) - Messages are dropped with an error log when the queue is full (prevents system hang) - Invalid HTML/Markdown characters are now automatically escaped to prevent API errors |
||
|---|---|---|
| .github | ||
| boswatch | ||
| config | ||
| docu | ||
| logo | ||
| module | ||
| plugin | ||
| test | ||
| .gitignore | ||
| build_docu.sh | ||
| bw_client.py | ||
| bw_server.py | ||
| Dockerfile | ||
| FileHead.template.py | ||
| init_db.sql | ||
| install.sh | ||
| install_service.py | ||
| LICENSE | ||
| pytest.sh | ||
| README.md | ||
| requirements.txt | ||
BOSWatch
Es wird darauf hingewiesen, dass für die Teilnahme am BOS-Funk nur nach den Technischen Richtlinien der BOS zugelassene Funkanlagen verwendet werden dürfen. Der BOS-Funk ist ein nichtöffentlicher mobiler Landfunk. Privatpersonen gehören nicht zum Kreis der berechtigten Funkteilnehmer. (Quelle: TR-BOS)
Documentation: https://docs.boswatch.de
Wenn dir dieses Projekt gefällt, gib uns bitte einen STAR
The intercept of the German BOS radio is strictly prohibited and will be prosecuted. The use is only permitted for authorized personnel.
If you like this project, please give us a STAR
