[New-bugs-announce] [issue33530] Implement Happy Eyeball in asyncio

twisteroid ambassador report at bugs.python.org
Tue May 15 22:56:28 EDT 2018


New submission from twisteroid ambassador <twisteroid.ambassador at gmail.com>:

Add a Happy Eyeballs implementation to asyncio, based on work in https://github.com/twisteroidambassador/async_stagger .

Current plans:

- Add 2 keyword arguments to loop.create_connection and asyncio.open_connection.

    * delay: Optional[float] = None. None disables happy eyeballs. A number >= 0 means the delay between starting new connections.

    * interleave: int = 1. Controls reordering of resolved IP addresses by address family.

- Optionally, expose the happy eyeballs scheduling helper function. 

    * It's currently called "staggered_race()". Suggestions for a better name welcome.

    * Should it belong to base_events.py, some other existing file or a new file?

----------
components: asyncio
messages: 316757
nosy: Yury.Selivanov, asvetlov, twisteroid ambassador, yselivanov
priority: normal
severity: normal
status: open
title: Implement Happy Eyeball in asyncio
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33530>
_______________________________________


More information about the New-bugs-announce mailing list