diff options
author | Max Romanov <max.romanov@nginx.com> | 2020-03-17 14:44:11 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2020-03-17 14:44:11 +0300 |
commit | c6f9ca79e6a8517544a0995414de8421a9983687 (patch) | |
tree | 6c0d1faf0f64442501169803d64e5ca8a0a30d56 /test/test_proxy.py | |
parent | efbcd517fc9ec1ef5a6dfe85cb79bf0a57b954c5 (diff) | |
download | unit-c6f9ca79e6a8517544a0995414de8421a9983687.tar.gz unit-c6f9ca79e6a8517544a0995414de8421a9983687.tar.bz2 |
Fixing body fd access racing condition.
To avoid closing the body fd prematurely, the fd value is moved from
the request struct to the app link. The body fd should not be closed
immediately after the request is sent to the application due to possible
request rescheduling.
Diffstat (limited to 'test/test_proxy.py')
-rw-r--r-- | test/test_proxy.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/test_proxy.py b/test/test_proxy.py index 5568550a..74bd0873 100644 --- a/test/test_proxy.py +++ b/test/test_proxy.py @@ -196,8 +196,6 @@ Content-Length: 10 self.assertEqual(resp['body'], payload, 'body') def test_proxy_parallel(self): - self.skip_alerts.append(r'close\(\d+\) failed') - payload = 'X' * 4096 * 257 buff_size = 4096 * 258 |