diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-12-26 21:07:30 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-12-26 21:07:30 +0000 |
commit | cd2aa8e17201ad22ea30d5942dd1886e181c05c2 (patch) | |
tree | c159b53554201c9213f197ef83bc9450c7d525bd /src/http/ngx_http_request.c | |
parent | 6ff850baf85b1cd43ed0878a91281a490a5dec20 (diff) | |
download | nginx-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.c | 6 |
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)) { |