Descriptionnet: never return -1 bytes read from netFD.Read
If the a network read would block, and a packet arrived just before the timeout expired, then the number of bytes from the previous (blocking) read, -1, would be returned.
This change restores the previous logic, where n would be unconditionally set to 0 if err != nil, but was skipped due to a change in CL 6851096.
The test for this change is CL 6851061.
Patch Set 1 #Patch Set 2 : diff -r db11b6a8c8f9 https://code.google.com/p/go #Patch Set 3 : diff -r db11b6a8c8f9 https://code.google.com/p/go #Patch Set 4 : diff -r cd3ad8805953 https://code.google.com/p/go #MessagesTotal messages: 4
|