]> Cypherpunks repositories - gostls13.git/commit
net: avoid use of listener socket options on active open sockets
authorMikio Hara <mikioh.mikioh@gmail.com>
Sat, 30 Mar 2013 06:21:22 +0000 (15:21 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Sat, 30 Mar 2013 06:21:22 +0000 (15:21 +0900)
commit4b7bf73c4b4f46603d4d89a103d1f797f90bc09e
tree461f11adaa38baa05e74c9a02e33b9bffdec15c0
parent5851b974a35b59ef46c6c7ba35a2cab095d3bb9d
net: avoid use of listener socket options on active open sockets

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
src/pkg/net/sock_posix.go