aboutsummaryrefslogtreecommitdiff
path: root/src/http/v3/ngx_http_v3_request.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2022-10-12 20:14:55 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2022-10-12 20:14:55 +0300
commit02314f0c3c70bad88ae3554eb66439a261898f24 (patch)
tree9a901e57200675ed07b3d6f668cfa6b2fae689a2 /src/http/v3/ngx_http_v3_request.c
parent1d572e359a210dcb27e5e073c016c1768c435263 (diff)
downloadnginx-02314f0c3c70bad88ae3554eb66439a261898f24.tar.gz
nginx-02314f0c3c70bad88ae3554eb66439a261898f24.zip
SSL: optimized rotation of session ticket keys.
Instead of syncing keys with shared memory on each ticket operation, the code now does this only when the worker is going to change expiration of the current key, or going to switch to a new key: that is, usually at most once per second. To do so without races, the code maintains 3 keys: current, previous, and next. If a worker will switch to the next key earlier, other workers will still be able to decrypt new tickets, since they will be encrypted with the next key.
Diffstat (limited to 'src/http/v3/ngx_http_v3_request.c')
0 files changed, 0 insertions, 0 deletions