1
0
mirror of https://github.com/golang/go synced 2024-11-24 07:40:17 -07:00

net: fix network timeout boundary condition.

Fixes #472.

R=golang-dev
CC=golang-dev
https://golang.org/cl/223108
This commit is contained in:
Stephen Ma 2010-03-03 18:43:36 +11:00
parent b73e592ed1
commit 3b82f295b4

View 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
}