Trailing whitespace fix.


git-svn-id: svn://svn.nginx.org/nginx/trunk@5081 73f98a42-aea0-e011-b76d-00259023448c
SSL: retry "sess_id" and "id" allocations.

In case of fully populated SSL session cache with no memory left for
new allocations, ngx_ssl_new_session() will try to expire the oldest
non-expired session and retry, but only in case when slab allocation
fails for "cached_sess", not when slab allocation fails for either
"sess_id" or "id", which can happen for number of reasons and results
in new session not being cached.

Patch fixes this by adding retry logic to "sess_id" & "id" allocations.

Patch by Piotr Sikora.


git-svn-id: svn://svn.nginx.org/nginx/trunk@5082 73f98a42-aea0-e011-b76d-00259023448c
Fixed potential segfault in ngx_http_keepalive_handler().

In case of error in the read event handling we close a connection
by calling ngx_http_close_connection(), that also destroys connection
pool. Thereafter, an attempt to free a buffer (added in r4892) that
was allocated from the pool could cause SIGSEGV and is meaningless
as well (the buffer already freed with the pool).


git-svn-id: svn://svn.nginx.org/nginx/trunk@5083 73f98a42-aea0-e011-b76d-00259023448c