diff options
author | Max Romanov <max.romanov@nginx.com> | 2020-12-17 19:27:44 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2020-12-17 19:27:44 +0300 |
commit | c0449e13f80312a2e09f643e1a69e536384eae79 (patch) | |
tree | eca86fb8fa3e0f185f9308b111edf0de81ab4ccb /src/nxt_stream_source.c | |
parent | 53d847615b270daf706373d65ac5f5d2101f36d9 (diff) | |
download | unit-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_stream_source.c')
0 files changed, 0 insertions, 0 deletions