Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(558)

Issue 14840043: Do not overwrite http.Client's transport (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by wallyworld
Modified:
10 years, 6 months ago
Reviewers:
mp+191740, thumper
Visibility:
Public.

Description

Do not overwrite http.Client's transport Ensure that http.Client's transport has DisableKeepAlives=true without ovwrwriting the transport itself. https://code.launchpad.net/~wallyworld/goose/better-http-transport-fix/+merge/191740 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M http/client.go View 1 chunk +4 lines, -3 lines 3 comments Download

Messages

Total messages: 5
wallyworld
Please take a look.
10 years, 6 months ago (2013-10-18 01:54:23 UTC) #1
thumper
https://codereview.appspot.com/14840043/diff/1/http/client.go File http/client.go (right): https://codereview.appspot.com/14840043/diff/1/http/client.go#newcode36 http/client.go:36: http.DefaultTransport.(*http.Transport).DisableKeepAlives = true You don't want this line right?
10 years, 6 months ago (2013-10-18 01:58:27 UTC) #2
wallyworld
https://codereview.appspot.com/14840043/diff/1/http/client.go File http/client.go (right): https://codereview.appspot.com/14840043/diff/1/http/client.go#newcode36 http/client.go:36: http.DefaultTransport.(*http.Transport).DisableKeepAlives = true On 2013/10/18 01:58:27, thumper wrote: > ...
10 years, 6 months ago (2013-10-18 02:02:53 UTC) #3
thumper
https://codereview.appspot.com/14840043/diff/1/http/client.go File http/client.go (right): https://codereview.appspot.com/14840043/diff/1/http/client.go#newcode36 http/client.go:36: http.DefaultTransport.(*http.Transport).DisableKeepAlives = true On 2013/10/18 02:02:54, wallyworld wrote: > ...
10 years, 6 months ago (2013-10-18 02:14:51 UTC) #4
thumper
10 years, 6 months ago (2013-10-18 02:23:44 UTC) #5
On 2013/10/18 02:14:51, thumper wrote:
> https://codereview.appspot.com/14840043/diff/1/http/client.go
> File http/client.go (right):
> 
> https://codereview.appspot.com/14840043/diff/1/http/client.go#newcode36
> http/client.go:36: http.DefaultTransport.(*http.Transport).DisableKeepAlives =
> true
> On 2013/10/18 02:02:54, wallyworld wrote:
> > On 2013/10/18 01:58:27, thumper wrote:
> > > You don't want this line right?
> > 
> > I think it's needed. What if a new http client is set up later and uses the
> > default transport. That's why I did this.
> 
> Hmm.. ok. What about the other changes that are in gwacl, goose etc that
> replaced the default transport?

Didn't notice that this one is goose.

LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b