openbsd-ports/www/lighttpd/patches/patch-src_mod_fastcgi_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
546 B
Plaintext

$OpenBSD: patch-src_mod_fastcgi_c,v 1.7 2011/08/24 21:28:09 sthen Exp $
--- src/mod_fastcgi.c.orig Mon Jun 13 07:23:40 2011
+++ src/mod_fastcgi.c Wed Aug 24 02:50:41 2011
@@ -3075,7 +3075,7 @@ static handler_t fcgi_write_request(server *srv, handl
fcgi_set_state(srv, hctx, FCGI_STATE_WRITE);
/* fall through */
case FCGI_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);