]> Cypherpunks repositories - gostls13.git/commit
net: check read and write deadlines before doing syscalls
authorBrad Fitzpatrick <bradfitz@golang.org>
Sat, 24 Nov 2012 06:15:26 +0000 (22:15 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 24 Nov 2012 06:15:26 +0000 (22:15 -0800)
commit5fa3aeb14d56f6af4d6ad3cc9c81a20775770911
tree9031191f82579a5be0a4d498d27d8a105e4e9711
parent314fd624343eaa2d110f9b5b192a0a8f354d63ed
net: check read and write deadlines before doing syscalls

Otherwise a fast sender or receiver can make sockets always
readable or writable, preventing deadline checks from ever
occuring.

Update #4191 (fixes it with other CL, coming separately)
Fixes #4403

R=golang-dev, alex.brainman, dave, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/6851096
src/pkg/net/fd_unix.go
src/pkg/net/timeout_test.go