openbsd-ports/www/lighttpd/patches/patch-src_mod_proxy_c
sthen 3c594e3ee9 lighttpd bugfix: Limit amount of bytes we send in one go; fixes stalling in one
connection and timeouts on slow systems. From upstream via Brad (maintainer)
2011-08-24 21:28:09 +00:00

13 lines
494 B
Plaintext

$OpenBSD: patch-src_mod_proxy_c,v 1.8 2011/08/24 21:28:09 sthen Exp $
--- src/mod_proxy.c.orig Fri Dec 10 12:41:18 2010
+++ src/mod_proxy.c Wed Aug 24 02:50:41 2011
@@ -825,7 +825,7 @@ static handler_t proxy_write_request(server *srv, hand
/* fall through */
case PROXY_STATE_WRITE:;
- ret = srv->network_backend_write(srv, con, hctx->fd, hctx->wb);
+ ret = srv->network_backend_write(srv, con, hctx->fd, hctx->wb, MAX_WRITE_LIMIT);
chunkqueue_remove_finished_chunks(hctx->wb);