1. 06 Mar, 2013 2 commits
    • Rob Pike's avatar
      effective_go.html: round 3 of minor edits. · 5f07125c
      Rob Pike authored
      R=golang-dev, iant
      CC=golang-dev
      https://golang.org/cl/7489044
      5f07125c
    • Brad Fitzpatrick's avatar
      net/http: close TCP connection on Response.Body.Close · ce834155
      Brad Fitzpatrick authored
      Previously the HTTP client's (*Response).Body.Close would try
      to keep reading until EOF, hoping to reuse the keep-alive HTTP
      connection, but the EOF might never come, or it might take a
      long time. Now we immediately close the TCP connection if we
      haven't seen EOF.
      
      This shifts the burden onto clients to read their whole response
      bodies if they want the advantage of reusing TCP connections.
      
      In the future maybe we could decide on heuristics to read some
      number of bytes for some max amount of time before forcefully
      closing, but I'd rather not for now.
      
      Statistically, touching this code makes things regress, so I
      wouldn't be surprised if this introduces new bugs, but all the
      tests pass, and I think the code is simpler now too. Maybe.
      
      Please test your HTTP client code before Go 1.1.
      
      Fixes #3672
      
      R=golang-dev, adg
      CC=golang-dev
      https://golang.org/cl/7419050
      ce834155
  2. 05 Mar, 2013 12 commits
  3. 04 Mar, 2013 19 commits
  4. 03 Mar, 2013 6 commits
  5. 02 Mar, 2013 1 commit
    • Shenghou Ma's avatar
      cmd/dist: support for NetBSD/ARM · 3d50aaf4
      Shenghou Ma authored
      1. when executing a unsupported VFP instruction, the NetBSD kernel somehow
      doesn't report SIGILL, and instead just spin and spin, we add a alarm(2)
      to detect this case (albeit this is a kernel bug).
      2. NetBSD/ARM's VFP11 support is not complete, so temporarily disable it.
      3. The default gcc shipped with NetBSD-current mis-optimizes our code
      at -O2, so lower the optimization level to -O1 on NetBSD/ARM.
      
      R=dave, rsc
      CC=golang-dev
      https://golang.org/cl/7286044
      3d50aaf4