openbsd-ports/www/lighttpd/patches/patch-src_base_h
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

18 lines
891 B
Plaintext

$OpenBSD: patch-src_base_h,v 1.5 2011/08/24 21:28:09 sthen Exp $
--- src/base.h.orig Sun Mar 13 13:48:23 2011
+++ src/base.h Wed Aug 24 02:50:41 2011
@@ -647,11 +647,9 @@ typedef struct server {
fdevent_handler_t event_handler;
- int (* network_backend_write)(struct server *srv, connection *con, int fd, chunkqueue *cq);
- int (* network_backend_read)(struct server *srv, connection *con, int fd, chunkqueue *cq);
+ int (* network_backend_write)(struct server *srv, connection *con, int fd, chunkqueue *cq, off_t max_bytes);
#ifdef USE_OPENSSL
- int (* network_ssl_backend_write)(struct server *srv, connection *con, SSL *ssl, chunkqueue *cq);
- int (* network_ssl_backend_read)(struct server *srv, connection *con, SSL *ssl, chunkqueue *cq);
+ int (* network_ssl_backend_write)(struct server *srv, connection *con, SSL *ssl, chunkqueue *cq, off_t max_bytes);
#endif
uid_t uid;