• Dmitriy Vyukov's avatar
    net: fix concurrent Accept on windows · 77f21eea
    Dmitriy Vyukov authored
    Runtime netpoll supports at most one read waiter
    and at most one write waiter. It's responsibility
    of net package to ensure that. Currently windows
    implementation allows more than one waiter in Accept.
    It leads to "fatal error: netpollblock: double wait".
    
    R=golang-dev, bradfitz
    CC=golang-dev
    https://golang.org/cl/12400045
    77f21eea
fd_windows.go 14.4 KB