]> git.kaiwu.me - nginx.git/commit
SSL: retry "sess_id" and "id" allocations.
authorMaxim Dounin <mdounin@mdounin.ru>
Sat, 23 Feb 2013 11:54:25 +0000 (11:54 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Sat, 23 Feb 2013 11:54:25 +0000 (11:54 +0000)
commit890ee444cafb9dcce387bd0814c2996a60ecf10e
tree971fb9d2d3d47a77603ab94915ecd4827125625d
parent56bc5f250bd99fe41f12b9a6b859ce5788a363f1
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.
src/event/ngx_event_openssl.c