summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_file.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-12-17 19:27:44 +0300
committerMax Romanov <max.romanov@nginx.com>2020-12-17 19:27:44 +0300
commitc0449e13f80312a2e09f643e1a69e536384eae79 (patch)
treeeca86fb8fa3e0f185f9308b111edf0de81ab4ccb /src/nxt_file.c
parent53d847615b270daf706373d65ac5f5d2101f36d9 (diff)
downloadunit-c0449e13f80312a2e09f643e1a69e536384eae79.tar.gz
unit-c0449e13f80312a2e09f643e1a69e536384eae79.tar.bz2
Router: fixed crash in OOSM processing.
Multithreaded application may create different shared memory segments in different threads. The segments then passed to different router threads. Because of this multithreading, the order of adding incoming segments is not determined and there can be situation when some of the incoming segments are not initialized yet. This patch simply adds check for NULL to skip non-initialized segments. Crash reproduced during load tests with high number of simultaneous connections (1024 and more).
Diffstat (limited to 'src/nxt_file.c')
0 files changed, 0 insertions, 0 deletions