unpoller_unpoller/pkg
Sven Grossmann 7e59c4883b fix: add HTTP timeout configuration to prevent indefinite hangs
The UniFi controller HTTP client was created without a timeout, causing
unpoller to hang indefinitely when the controller becomes unresponsive.
This resulted in random stops where polling would cease until the
container was restarted.

Changes:
- Add Timeout field to Controller struct (cnfg.Duration)
- Set default timeout of 60 seconds
- Pass timeout to unifi.Config when creating the client
- Log timeout value on startup for visibility

The timeout can be configured via:
- Config file: timeout = "60s"
- Environment: UP_UNIFI_DEFAULT_TIMEOUT=60s

Fixes issue where container would hang overnight:
  2025/12/22 22:29:27 - Requesting https://unifi/.../stat/sta
  [~2 hour gap - request hung indefinitely]
  2025/12/23 00:17:57 - Unmarshalling Device Type: udm...
2025-12-23 11:13:54 +01:00
..
datadogunifi Fix multi-WAN speed test reporting (issue #841) 2025-12-09 16:46:14 -06:00
influxunifi Add byte counters for InfluxDB and Prometheus outputs (issue #350) 2025-12-11 10:55:33 -06:00
inputunifi fix: add HTTP timeout configuration to prevent indefinite hangs 2025-12-23 11:13:54 +01:00
lokiunifi feat: add UniFi Protect logs support with Loki integration 2025-12-22 22:55:30 +01:00
mysqlunifi
poller Fix multi-WAN speed test reporting (issue #841) 2025-12-09 16:46:14 -06:00
promunifi Add byte counters for InfluxDB and Prometheus outputs (issue #350) 2025-12-11 10:55:33 -06:00
unittest
webserver