diff options
author | Max Romanov <max.romanov@nginx.com> | 2021-07-01 16:22:08 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2021-07-01 16:22:08 +0300 |
commit | 210c8bbd81a8836bffee221215effa00018868cd (patch) | |
tree | d2166093c42c6723387fbff4021dcee4a7e6a04c /src/nxt_port_socket.c | |
parent | 830729a6c5a59615d611575c22516b0fb9dcab3d (diff) | |
download | unit-210c8bbd81a8836bffee221215effa00018868cd.tar.gz unit-210c8bbd81a8836bffee221215effa00018868cd.tar.bz2 |
Tests: fixing racing condition in respawn tests.
A race may occur between the router process restart and the main process
sending a notification to the running controller. For example, a test script
detects the new process and starts performing a smoke test, but the controller
has not yet received the 'remove PID' notification, so the connection to the
router is broken and any attempt to update the configuration will cause an
error.
The solution is to perform several attempts to reconfigure Unit with a short
delay between failures.
Diffstat (limited to 'src/nxt_port_socket.c')
0 files changed, 0 insertions, 0 deletions