]> Cypherpunks repositories - gostls13.git/commit
net: Plan 9: open data file and set remote-addr properly
authorAkshat Kumar <seed@mail.nanosouffle.net>
Wed, 20 Feb 2013 01:11:17 +0000 (17:11 -0800)
committerAnthony Martin <ality@pbrane.org>
Wed, 20 Feb 2013 01:11:17 +0000 (17:11 -0800)
commit66b69a1719040e05f8ccef8110aaff192968c29a
tree098df1b1bf5fa6e79718f9232a5792285d3bdd29
parent40c2fbf4f2d56bc180a579d63dcfaf537984d9e5
net: Plan 9: open data file and set remote-addr properly

The data file should be opened when a Conn is first
established, rather than waiting for the first Read or
Write.

Upon Close, we now make sure to try to close both, the
ctl as well as data files and set both to nil, even in
the face of errors, instead of returning early.

The Accept call was not setting the remote address
of the connection properly. Now, we read the correct
file.

Make functions that establish Conn use newTCPConn
or newUDPConn.

R=rsc, rminnich, ality, dave
CC=golang-dev
https://golang.org/cl/7228068
src/pkg/net/fd_plan9.go
src/pkg/net/ipsock_plan9.go
src/pkg/net/tcpsock_plan9.go
src/pkg/net/udpsock_plan9.go