]> Cypherpunks repositories - gostls13.git/commit
net: rearrange the call order of runtime-integrated network pollster and syscall...
authorMikio Hara <mikioh.mikioh@gmail.com>
Thu, 15 Aug 2013 07:40:33 +0000 (16:40 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Thu, 15 Aug 2013 07:40:33 +0000 (16:40 +0900)
commit5d5defc77ffbf88b8f9a4facf66798e3016340cf
tree24951ef5cd231af8c44763a097ea8b75265a9327
parenta454d2fd2e6a60648728ca6c959a7c0b24119fec
net: rearrange the call order of runtime-integrated network pollster and syscall functions

This CL rearranges the call order for raw networking primitives like
the following;

- For dialers that open active connections, pollDesc.Init will be
  called before syscall.Connect.

- For stream listeners that open passive stream connections,
  pollDesc.Init will be called just after syscall.Listen.

- For datagram listeners that open datagram connections,
  pollDesc.Init will be called just after syscall.Bind.

This is in preparation for runtime-integrated network pollster for BSD
variants.

Update #5199

R=golang-dev, alex.brainman
CC=golang-dev
https://golang.org/cl/12730043
src/pkg/net/sock_posix.go
src/pkg/net/tcpsock_posix.go
src/pkg/net/unixsock_posix.go