• Mikio Hara's avatar
    net: prevent spurious on-connect events via epoll on linux · c0325f50
    Mikio Hara authored
    On Linux, adding a socket descriptor to epoll instance before getting
    the EINPROGRESS return value from connect system call could be a root
    cause of spurious on-connect events.
    
    See golang.org/issue/8276, golang.org/issue/8426 for further information.
    
    All credit to Jason Eggleston <jason@eggnet.com>
    
    Fixes #8276.
    Fixes #8426.
    
    LGTM=dvyukov
    R=dvyukov, golang-codereviews, adg, dave, iant, alex.brainman
    CC=golang-codereviews
    https://golang.org/cl/120820043
    c0325f50
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
liblink Loading commit data...
pkg Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
androidtest.bash Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
nacltest.bash Loading commit data...
race.bash Loading commit data...
race.bat Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...
sudo.bash Loading commit data...