diff options
author | Max Romanov <max.romanov@nginx.com> | 2018-09-20 17:30:56 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2018-09-20 17:30:56 +0300 |
commit | 58c38298f53e684e2b5a45e5f7cf053f142ba384 (patch) | |
tree | 2c38f21650ae96393f3999fd46f6459e1867a29c /docs/changes.xml | |
parent | d0e428aace21c7b3462afacde6955fb1017596db (diff) | |
download | unit-58c38298f53e684e2b5a45e5f7cf053f142ba384.tar.gz unit-58c38298f53e684e2b5a45e5f7cf053f142ba384.tar.bz2 |
Resetting init->stream for ready process.
Router requests application start by sending port message with application
parameters to master. In response router gets application port. Stream id
used to link request and response. If application process terminates
unexpectedly (e.g. before ready state), it is required to notify router about
application start failure. For this purpose stream id is stored in process
initialization parameters.
Stream id sequentially incremented and starts from 1 in case of router
resurrection. New router application start stream id may coincide with
stream id of currently running/terminating application processes. In such
cases router may receive REMOVE_PID message with same stream id as used in
application start request and mistakenly reports application start failure.
This commit tries to avoid such errors by resetting stream for processes in
ready state.
Diffstat (limited to 'docs/changes.xml')
0 files changed, 0 insertions, 0 deletions