1. 27 Nov, 2012 11 commits
  2. 26 Nov, 2012 27 commits
  3. 25 Nov, 2012 2 commits
    • Dave Cheney's avatar
      net: never return -1 bytes read from netFD.Read · 73b3e230
      Dave Cheney authored
      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.
      
      R=bradfitz, mikioh.mikioh, dvyukov, rsc
      CC=golang-dev
      https://golang.org/cl/6852085
      73b3e230
    • Brad Fitzpatrick's avatar
      net/http/httptest: protect against port reuse · f97bb12b
      Brad Fitzpatrick authored
      Should make BSDs more reliable. (they seem to reuse ports
      quicker than Linux)
      
      Tested by hand with local modifications to force reuse on
      Linux. (net/http tests failed before, pass now) Details in the
      issue.
      
      Fixes #4436
      
      R=golang-dev, minux.ma
      CC=golang-dev
      https://golang.org/cl/6847101
      f97bb12b