diff options
| author | Stephen Ma <stephenm@golang.org> | 2010-03-03 18:43:36 +1100 |
|---|---|---|
| committer | Stephen Ma <stephenm@golang.org> | 2010-03-03 18:43:36 +1100 |
| commit | 3b82f295b47e0601a0cec34c27e35fa2a03484fb (patch) | |
| tree | 8523d10f62c71cc86b5d3c04c7861b36b362f88d | |
| parent | b73e592ed1e0f242a824d7bf4ed865fcb1dea916 (diff) | |
| download | go-3b82f295b47e0601a0cec34c27e35fa2a03484fb.tar.xz | |
net: fix network timeout boundary condition.
Fixes #472.
R=golang-dev
CC=golang-dev
https://golang.org/cl/223108
| -rw-r--r-- | src/pkg/net/fd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/net/fd.go b/src/pkg/net/fd.go index 83705a5a87..df5a39db4c 100644 --- a/src/pkg/net/fd.go +++ b/src/pkg/net/fd.go @@ -228,7 +228,7 @@ func (s *pollServer) Run() { var t = s.deadline if t > 0 { t = t - s.Now() - if t < 0 { + if t <= 0 { s.CheckDeadlines() continue } |
