Project

General

Profile

Bug #1265 ยป 04-limit-ssl-mem.patch

File which fixes this on my system (though it's probably not a "proper" fix) - mlcreech, 2007-07-25 17:43

View differences:

lighttpd-1.4.15/src/connections.c 2007-07-20 16:05:37.000000000 -0400
#ifdef USE_OPENSSL
int r, ssl_err, len;
buffer *b = NULL;
size_t cnt=0;
static const size_t max_buffered_blocks=8;
if (!con->conf.is_ssl) return -1;
......
con->bytes_read += len;
b = NULL;
}
} while (len > 0);
} while ((len > 0) && (++cnt<max_buffered_blocks));
if (len < 0) {
lighttpd-1.4.15/src/network.c 2007-07-20 16:05:42.000000000 -0400
s->ssl_pemfile);
return -1;
}
SSL_CTX_set_default_read_ahead(s->ssl_ctx, 1);
SSL_CTX_set_default_read_ahead(s->ssl_ctx, 0);
SSL_CTX_set_mode(s->ssl_ctx, SSL_CTX_get_mode(s->ssl_ctx) | SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
srv_socket->ssl_ctx = s->ssl_ctx;
    (1-1/1)