aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-12-26 21:07:30 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-12-26 21:07:30 +0000
commitcd2aa8e17201ad22ea30d5942dd1886e181c05c2 (patch)
treec159b53554201c9213f197ef83bc9450c7d525bd /src/http/ngx_http_request.c
parent6ff850baf85b1cd43ed0878a91281a490a5dec20 (diff)
downloadnginx-cd2aa8e17201ad22ea30d5942dd1886e181c05c2.tar.gz
nginx-cd2aa8e17201ad22ea30d5942dd1886e181c05c2.zip
create ssl buffer on demand and free it before keep-alive
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index 060de0310..b2c873331 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -2112,6 +2112,12 @@ ngx_http_set_keepalive(ngx_http_request_t *r)
hc->nbusy = 0;
}
+#if (NGX_HTTP_SSL)
+ if (c->ssl) {
+ ngx_ssl_free_buffer(c);
+ }
+#endif
+
rev->handler = ngx_http_keepalive_handler;
if (wev->active && (ngx_event_flags & NGX_USE_LEVEL_EVENT)) {