Skip to content

Commit c713fe4

Browse files
committed
Remove ReadDeadline on speedtest server
This was causing IO timeouts on semi-high latency connections.
1 parent 3b49f62 commit c713fe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/speedtest/speedtest_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func doTest(conn net.Conn, conf config) ([]Result, error) {
8585
lastCalculated := startTime
8686

8787
if conf.Direction == Download {
88-
conn.SetReadDeadline(time.Now().Add(conf.TestDuration).Add(5 * time.Second))
88+
conn.SetReadDeadline(time.Now().Add(conf.TestDuration).Add(3 * conf.TestDuration))
8989
} else {
9090
_, err := rand.Read(bufferData)
9191
if err != nil {

0 commit comments

Comments
 (0)