Moved idle_timeout_ms into compile-time option