From f45d397e41adf4040b0bd8173f18ca7d4758993b Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 23 Jun 2014 20:30:31 +1000 Subject: [PATCH] udp_tracker: If a read deadline occurs, writes were failing with i/o timeout --- tracker/udp/udp_tracker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracker/udp/udp_tracker.go b/tracker/udp/udp_tracker.go index b53c7624..c544aad4 100644 --- a/tracker/udp/udp_tracker.go +++ b/tracker/udp/udp_tracker.go @@ -159,7 +159,7 @@ func (c *client) request(action Action, args interface{}) (responseBody *bytes.R if err != nil { return } - c.socket.SetDeadline(time.Now().Add(timeout(c.contiguousTimeouts))) + c.socket.SetReadDeadline(time.Now().Add(timeout(c.contiguousTimeouts))) b := make([]byte, 0x10000) // IP limits packet size to 64KB for { var n int