I would probably introduce `max_idle_us() -> logplex_app:config(tcp_syslog_idle_timeout) * 1000.` or even

```erlang
-spec connection_idle(#state{}) -> {idle, IdleTimeUS::pos_integer()} |
                                   {active, IdleTimeUS::pos_integer()}.
```