diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-04-19 19:48:58 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-04-19 19:48:58 +0300 |
commit | a20830ff554a10094894e825ef9124c4a81745b6 (patch) | |
tree | c247972e1c0e86c207ba0e78d2b92908323fa535 /src/nxt_conn_read.c | |
parent | da22c2ca96d9484eb4e95536fd6276967868114e (diff) | |
download | unit-a20830ff554a10094894e825ef9124c4a81745b6.tar.gz unit-a20830ff554a10094894e825ef9124c4a81745b6.tar.bz2 |
Router: fixed race condition while access log reopening.
In order to reopen access log, the router process creates a memory pool
and allocates a buffer to send RPC message for the main process.
Previously, the memory pool was destroyed when RPC response handler was
called. It appeared, that the buffer completion handler could be not
triggered by that time and still remained in a queue.
Now the memory pool is destroyed only after both events are happen.
Diffstat (limited to 'src/nxt_conn_read.c')
0 files changed, 0 insertions, 0 deletions