New submission from Lisa Guo <lisali...@yahoo.com>:

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 "backlog" connections.

This doesn't work very well in a web server scenario where we have many 
processes listening on the same socket. Each process should not accept up to 
"backlog" connections, for better load balancing among processes. It would be 
ideal if this is a separate argument for the server configuration so that the 
application can decide up to how many connections it is willing to accept in 
the loop, independent of the backlog parameter for listen() system call.

Let me know if this makes sense.

Lisa

----------
messages: 319116
nosy: lguo
priority: normal
severity: normal
status: open
title: asyncio accepting connection limit
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33811>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to