icinga2 icon indicating copy to clipboard operation
icinga2 copied to clipboard

ApiListener: Use the non-throwing form of `socket#remote_endpoint()`

Open yhabteab opened this issue 1 year ago • 0 comments

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

yhabteab avatar Feb 09 '24 08:02 yhabteab