[issue33811] asyncio accepting connection limit

2018-06-09 Thread Lisa Guo
Lisa Guo added the comment: One rough idea would be like this: https://github.com/python/cpython/compare/master...lguo2020:fix-issue-33811?expand=1. Another option is to associate it with the loop: loop.set_max_accept(2) and then later self._loop._start_serving(.,

[issue33811] asyncio accepting connection limit

2018-06-08 Thread Yury Selivanov
Yury Selivanov added the comment: In principle this sounds good, but I'm not sure how the API and implementation would look like. Maybe you can share a bit more details? -- components: +asyncio nosy: +asvetlov, yselivanov ___ Python tracker

[issue33811] asyncio accepting connection limit

2018-06-08 Thread Lisa Guo
New submission from Lisa Guo : https://bugs.python.org/issue27906 describes a situation where accept rate of connection is too slow for use cases where spikes of incoming connection warrants fast accept. The fix for that was to accept socket connection in a tight loop until it reaches