[httpd] libevent proxy handling changes with libevent >= 2.2

This commit is contained in:
Christian Meffert 2024-12-27 07:42:43 +00:00
parent c0192cc1f6
commit 07a5e6858d

View File

@ -305,9 +305,11 @@ gencb_httpd(httpd_backend *backend, void *arg)
struct httpd_request *hreq; struct httpd_request *hreq;
struct bufferevent *bufev; struct bufferevent *bufev;
#ifndef HAVE_LIBEVENT22
// Clear the proxy request flag set by evhttp if the request URI was absolute. // Clear the proxy request flag set by evhttp if the request URI was absolute.
// It has side-effects on Connection: keep-alive // It has side-effects on Connection: keep-alive
backend->flags &= ~EVHTTP_PROXY_REQUEST; backend->flags &= ~EVHTTP_PROXY_REQUEST;
#endif
// This is a workaround for some versions of libevent (2.0 and 2.1) that don't // 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 // detect if the client hangs up, and thus don't clean up and never call the