icinga2
icinga2 copied to clipboard
ApiListener: Use the non-throwing form of `socket#remote_endpoint()`
Otherwise, it will trigger an exception if the remote peer is already disconnected, resulting in an incomplete and confusing log message.
[2024-02-08 14:05:58 +0100] warning/ApiListener: Timeout while processing incoming connection from
[2024-02-08 14:05:58 +0100] critical/IoEngine: Exception in coroutine!
[2024-02-08 14:05:58 +0100] warning/ApiListener: Timeout while processing incoming connection from
[2024-02-08 14:05:58 +0100] critical/IoEngine: Exception in coroutine!
[2024-02-08 14:05:58 +0100] warning/ApiListener: Timeout while processing incoming connection from
[2024-02-08 14:05:58 +0100] critical/IoEngine: Exception in coroutine!
[2024-02-08 14:05:58 +0100] warning/ApiListener: Timeout while processing incoming connection from
[2024-02-08 14:05:58 +0100] critical/IoEngine: Exception in coroutine!
ref/IP/48306