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.
This commit is contained in:
Max Romanov
2020-03-17 14:44:11 +03:00
parent efbcd517fc
commit c6f9ca79e6
3 changed files with 32 additions and 18 deletions

View File

@@ -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