mirror of
https://github.com/golang/go
synced 2024-11-24 05:10:19 -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:
parent
b73e592ed1
commit
3b82f295b4
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user