• Mikio Hara's avatar
    net: avoid use of listener socket options on active open sockets · 4b7bf73c
    Mikio Hara authored
    This CL ensures we use the correct socket options for
    passive and active open sockets.
    
    For the passive open sockets created by Listen functions,
    additional SO_REUSEADDR, SO_REUSEPORT options are required
    for the quick service restart and/or multicasting.
    
    For the active open sockets created by Dial functions, no
    additional options are required.
    
    R=golang-dev, dave, bradfitz, rsc
    CC=golang-dev
    https://golang.org/cl/7795050
    4b7bf73c
sock_posix.go 1.86 KB