1. 29 Sep, 2017 6 commits
  2. 28 Sep, 2017 9 commits
  3. 27 Sep, 2017 23 commits
  4. 26 Sep, 2017 2 commits
    • Daniel Martí's avatar
      net/http: error if Transport.Proxy returns https · e61c5e2f
      Daniel Martí authored
      Transport.Proxy is documented as only supporting the http and socks5
      schemes. If one tries to use it for https URLs, they end up with a
      cryptic error like:
      
      	http: TLS handshake error from [...]: tls: oversized record received with length 20037
      
      This is because Transport simply skips TLS if Proxy is non-nil, since it
      knows it doesn't support Proxy with https.
      
      However, that error is very confusing and it can take a while to figure
      out what's going on. Instead, error if Proxy is used and it returns an
      unsupported scheme.
      
      Updates #19493.
      
      Change-Id: Ia036357011752f45bb9b8282a4ab5e31bc8d1a69
      Reviewed-on: https://go-review.googlesource.com/66010
      Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarTom Bergan <tombergan@google.com>
      e61c5e2f
    • Austin Clements's avatar
      runtime: make runtime.GC() trigger GC even if GOGC=off · 0744c21b
      Austin Clements authored
      Currently, the priority of checks in (gcTrigger).test() puts the
      gcpercent<0 test above gcTriggerCycle, which is used for runtime.GC().
      This is an unintentional change from 1.8 and before, where
      runtime.GC() triggered a GC even if GOGC=off.
      
      Fix this by rearranging the priority so the gcTriggerCycle test
      executes even if gcpercent < 0.
      
      Fixes #22023.
      
      Change-Id: I109328d7b643b6824eb9d79061a9e775f0149575
      Reviewed-on: https://go-review.googlesource.com/65994
      Run-TryBot: Austin Clements <austin@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
      0744c21b