Issue #27906: Fix socket accept exhaustion during high TCP traffic.

Patch by Kevin Conway.
This commit is contained in:
Yury Selivanov 2016-09-15 14:13:15 -04:00
parent 4357cf6202
commit a1b0e7db73
6 changed files with 60 additions and 36 deletions

View file

@ -1634,7 +1634,7 @@ class BaseEventLoopWithSelectorTests(test_utils.TestCase):
self.loop.call_later.assert_called_with(constants.ACCEPT_RETRY_DELAY,
# self.loop._start_serving
mock.ANY,
MyProto, sock, None, None)
MyProto, sock, None, None, mock.ANY)
def test_call_coroutine(self):
@asyncio.coroutine