]> Cypherpunks repositories - gostls13.git/commit
net: move deadline logic into pollServer
authorDave Cheney <dave@cheney.net>
Wed, 28 Nov 2012 00:29:25 +0000 (11:29 +1100)
committerDave Cheney <dave@cheney.net>
Wed, 28 Nov 2012 00:29:25 +0000 (11:29 +1100)
commit28b599425dd535539f9001d42ec4dd4d472f3195
tree80d0e8b3ef6642f7363c9575dec843b03b70341c
parentda803e5cd38ff74dfec212c1a04c114ee305b7b4
net: move deadline logic into pollServer

Update #4434.

The proposal attempts to reduce the number of places where fd,{r,w}deadline is checked and updated in preparation for issue 4434. In doing so the deadline logic is simplified by letting the pollster return errTimeout from netFD.Wait{Read,Write} as part of the wakeup logic.

The behaviour of setting n = 0 has been restored to match rev 2a55e349097f, which was the previous change to fd_unix.go before CL 6851096.

R=jsing, bradfitz, mikioh.mikioh, rsc
CC=fullung, golang-dev
https://golang.org/cl/6850110
src/pkg/net/fd_unix.go
src/pkg/net/fd_unix_test.go