udp_tracker: If a read deadline occurs, writes were failing with i/o timeout

This commit is contained in:
Matt Joiner 2014-06-23 20:30:31 +10:00
parent 9b6e3f25cd
commit f45d397e41
1 changed files with 1 additions and 1 deletions

View File

@ -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