From: Stephen Ma Date: Wed, 3 Mar 2010 07:43:36 +0000 (+1100) Subject: net: fix network timeout boundary condition. X-Git-Tag: weekly.2010-03-04~6 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3b82f295b47e0601a0cec34c27e35fa2a03484fb;p=gostls13.git net: fix network timeout boundary condition. Fixes #472. R=golang-dev CC=golang-dev https://golang.org/cl/223108 --- 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 }