Staging
v0.5.1
https://github.com/python/cpython
Revision 88f07a804a0adc0b6ee87687b59d8416113c7331 authored by twisteroid ambassador on 05 May 2019, 11:14:35 UTC, committed by Miss Islington (bot) on 05 May 2019, 11:14:35 UTC


Added two keyword arguments, `delay` and `interleave`, to
`BaseEventLoop.create_connection`. Happy eyeballs is activated if
`delay` is specified.

We now have documentation for the new arguments. `staggered_race()` is in its own module, but not exported to the main asyncio package.


https://bugs.python.org/issue33530
1 parent c4d92c8
Raw File
Tip revision: 88f07a804a0adc0b6ee87687b59d8416113c7331 authored by twisteroid ambassador on 05 May 2019, 11:14:35 UTC
bpo-33530: Implement Happy Eyeballs in asyncio, v2 (GH-7237)
Tip revision: 88f07a8
generrmap.c
#include <windows.h>
#include <fcntl.h>
#include <io.h>
#include <stdio.h>
#include <errno.h>

/* Extract the mapping of Win32 error codes to errno */

int main()
{
    int i;
    _setmode(fileno(stdout), O_BINARY);
    printf("/* Generated file. Do not edit. */\n");
    printf("int winerror_to_errno(int winerror)\n");
    printf("{\n    switch(winerror) {\n");
    for(i=1; i < 65000; i++) {
        _dosmaperr(i);
        if (errno == EINVAL) {
            /* Issue #12802 */
            if (i == ERROR_DIRECTORY)
                errno = ENOTDIR;
            /* Issue #13063 */
            else if (i == ERROR_NO_DATA)
                errno = EPIPE;
            else
                continue;
        }
        printf("        case %d: return %d;\n", i, errno);
    }
    printf("        default: return EINVAL;\n");
    printf("    }\n}\n");
}
back to top