1. 03 Jul, 2018 6 commits
  2. 02 Jul, 2018 12 commits
  3. 01 Jul, 2018 2 commits
  4. 30 Jun, 2018 1 commit
  5. 29 Jun, 2018 16 commits
  6. 28 Jun, 2018 3 commits
    • Ian Lance Taylor's avatar
      reflect: remove struct tags from unexported types · 997d7a18
      Ian Lance Taylor authored
      Before CL 4281055 in 2011, the reflect package was quite different.
      rtype, then called commonType, was embedded in exported structs with
      names like StructType. In order to avoid accidental conversions
      between pointers to these public structs, which sometimes had
      identical fields, the embedded commonType fields were tagged.
      
      In CL 4281055 the formerly public structs were unexported, and all
      access was done through the Type interface. At that point the field
      tags in the reflect structs were no longer useful.
      
      In Go 1.8 the language was changed to ignore struct field tags when
      converting between types. This made the field tags in the reflect
      structs doubly useless.
      
      This CL simply removes them.
      
      Fixes #20914
      
      Change-Id: I9af4d6d0709276a91a6b6ee5323cad9dcd0cd0a0
      Reviewed-on: https://go-review.googlesource.com/121475
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      997d7a18
    • Robert Griesemer's avatar
      cmd/compile: don't crash in untyped expr to interface conversion · b410ce75
      Robert Griesemer authored
      Fixes #24763.
      
      Change-Id: Ibe534271d75b6961d00ebfd7d42c43a3ac650d79
      Reviewed-on: https://go-review.googlesource.com/121335Reviewed-by: 's avatarMatthew Dempsky <mdempsky@google.com>
      b410ce75
    • Brad Fitzpatrick's avatar
      net/http: make Server.Shutdown treat new connections as idle after 5 seconds · a79fe535
      Brad Fitzpatrick authored
      The Server distinguishes "new" vs "idle" connections. A TCP connection
      from which no bytes have yet been written is "new". A connection that
      has previously served a request and is in "keep-alive" state while
      waiting for a second or further request is "idle".
      
      The graceful Server.Shutdown historically only shut down "idle"
      connections, with the assumption that a "new" connection was about to
      read its request and would then shut down on its own afterwards.
      
      But apparently some clients spin up connections and don't end up using
      them, so we have something that's "new" to us, but browsers or other
      clients are treating as "idle" to them.
      
      This CL tweaks our heuristic to treat a StateNew connection as
      StateIdle if it's been stuck in StateNew for over 5 seconds.
      
      Fixes #22682
      
      Change-Id: I01ba59a6ab67755ca5ab567041b1f54aa7b7da6f
      Reviewed-on: https://go-review.googlesource.com/121419
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      a79fe535