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... |
||
|---|---|---|
| .. | ||
| datadogunifi | ||
| influxunifi | ||
| inputunifi | ||
| lokiunifi | ||
| mysqlunifi | ||
| poller | ||
| promunifi | ||
| unittest | ||
| webserver | ||