]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix network timeout boundary condition.
authorStephen Ma <stephenm@golang.org>
Wed, 3 Mar 2010 07:43:36 +0000 (18:43 +1100)
committerStephen Ma <stephenm@golang.org>
Wed, 3 Mar 2010 07:43:36 +0000 (18:43 +1100)
Fixes #472.

R=golang-dev
CC=golang-dev
https://golang.org/cl/223108

src/pkg/net/fd.go

index 83705a5a8707aa30fd2d9e047a1132b273543289..df5a39db4cc15eef80f257a14a31df945f802be8 100644 (file)
@@ -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
                        }