From 07a5e6858d19654992fb11aa832031595b7e4e3a Mon Sep 17 00:00:00 2001 From: Christian Meffert Date: Fri, 27 Dec 2024 07:42:43 +0000 Subject: [PATCH] [httpd] libevent proxy handling changes with libevent >= 2.2 --- src/httpd_libevhttp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/httpd_libevhttp.c b/src/httpd_libevhttp.c index a9591032..4499fec2 100644 --- a/src/httpd_libevhttp.c +++ b/src/httpd_libevhttp.c @@ -305,9 +305,11 @@ gencb_httpd(httpd_backend *backend, void *arg) struct httpd_request *hreq; struct bufferevent *bufev; +#ifndef HAVE_LIBEVENT22 // Clear the proxy request flag set by evhttp if the request URI was absolute. // It has side-effects on Connection: keep-alive backend->flags &= ~EVHTTP_PROXY_REQUEST; +#endif // This is a workaround for some versions of libevent (2.0 and 2.1) that don't // detect if the client hangs up, and thus don't clean up and never call the