Skip to content

Add a timeout to JSONHTTPLogHandler

Giuseppe Lavagetto requested to merge auditlog_timeout into main

When the server running conftool2git was rebooted, the connection was impossible but not refused, so our audit logger would wait for the connection timeout on the socket, which is set by default in http.client to the general socket timeout.

With this change, we should be able to limit the impact of the server going down to a slight slowdown; if this means we lose some log messages, I think we can live with that.

Merge request reports