summaryrefslogtreecommitdiffhomepage
path: root/test/test_proxy.py
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-03-17 14:44:11 +0300
committerMax Romanov <max.romanov@nginx.com>2020-03-17 14:44:11 +0300
commitc6f9ca79e6a8517544a0995414de8421a9983687 (patch)
tree6c0d1faf0f64442501169803d64e5ca8a0a30d56 /test/test_proxy.py
parentefbcd517fc9ec1ef5a6dfe85cb79bf0a57b954c5 (diff)
downloadunit-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.py2
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