| commit | cd2aa8e17201ad22ea30d5942dd1886e181c05c2 | [log] [tgz] |
|---|---|---|
| author | Igor Sysoev <igor@sysoev.ru> | Wed Dec 26 21:07:30 2007 +0000 |
| committer | Igor Sysoev <igor@sysoev.ru> | Wed Dec 26 21:07:30 2007 +0000 |
| tree | c159b53554201c9213f197ef83bc9450c7d525bd | |
| parent | 6ff850baf85b1cd43ed0878a91281a490a5dec20 [diff] [blame] |
create ssl buffer on demand and free it before keep-alive
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 060de03..b2c8733 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c
@@ -2112,6 +2112,12 @@ 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)) {