summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_unit.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-02-03 11:20:59 +0300
committerMax Romanov <max.romanov@nginx.com>2020-02-03 11:20:59 +0300
commit7ea9ebc55a22fec53bb095975e639d4fbfebb575 (patch)
tree15925f0f0df88ea50955213ccee3b972e0a5639f /src/nxt_unit.c
parent8c0f2cebf5eba555d104c42b556e54635f5d0890 (diff)
downloadunit-7ea9ebc55a22fec53bb095975e639d4fbfebb575.tar.gz
unit-7ea9ebc55a22fec53bb095975e639d4fbfebb575.tar.bz2
Fixed req_app_link reference counting on cancellation.
Re-scheduled req_app_link structures should have use_count exactly equal to the number of references from the application and port list. However, there's one extra usage decrement that occurs after the req_app_link is created because the use_count is initialised as 1. This patch removes all excess instances of the usage decrement that caused preliminary req_app_link release and router process crash. To reproduce the issue need to cause request rescheduling between 2 app processes. This issue was introduced in 61e9f23a566d.
Diffstat (limited to 'src/nxt_unit.c')
0 files changed, 0 insertions, 0 deletions