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

Issue 7307098: code review 7307098: net/http, net/http/httptest: don't use 127.0.0.1 for lo... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by bradfitz
Modified:
11 years, 2 months ago
CC:
golang-dev
Visibility:
Public.

Description

net/http, net/http/httptest: don't use 127.0.0.1 for localhost TLS tests This introduces httptest.(*Server).Transport() to return an *http.Transport which special-cases the hostname "go-local-test" to mean localhost, and makes the httptest certificates use that hostname, instead of "127.0.0.1" Update Issue 4658

Patch Set 1 #

Patch Set 2 : diff -r 6c6b3968b605 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 6c6b3968b605 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 4 : diff -r 6c6b3968b605 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 6c6b3968b605 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -67 lines) Patch
M src/pkg/crypto/tls/generate_cert.go View 1 2 3 2 chunks +25 lines, -6 lines 0 comments Download
M src/pkg/go/build/deps_test.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/net/http/client_test.go View 1 2 3 4 chunks +15 lines, -31 lines 0 comments Download
M src/pkg/net/http/httptest/server.go View 1 2 3 4 chunks +68 lines, -20 lines 0 comments Download
M src/pkg/net/http/npn_test.go View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M src/pkg/net/http/serve_test.go View 1 2 chunks +4 lines, -7 lines 0 comments Download

Messages

Total messages: 16
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 2 months ago (2013-02-12 01:48:00 UTC) #1
bradfitz
Per the other thread, this doesn't work yet: A couple tests fail with: --- FAIL: ...
11 years, 2 months ago (2013-02-12 01:49:56 UTC) #2
bradfitz
Also, this is kind of an API change. Anybody using httptest.NewTLSServer will likely have broken ...
11 years, 2 months ago (2013-02-12 01:53:42 UTC) #3
shanemhansen
https://codereview.appspot.com/7307098/diff/4001/src/pkg/crypto/tls/generate_cert.go File src/pkg/crypto/tls/generate_cert.go (right): https://codereview.appspot.com/7307098/diff/4001/src/pkg/crypto/tls/generate_cert.go#newcode45 src/pkg/crypto/tls/generate_cert.go:45: I think one issue is that this cert template ...
11 years, 2 months ago (2013-02-12 08:08:40 UTC) #4
shanemhansen
On 2013/02/12 08:08:40, shanemhansen wrote: > https://codereview.appspot.com/7307098/diff/4001/src/pkg/crypto/tls/generate_cert.go > File src/pkg/crypto/tls/generate_cert.go (right): > > https://codereview.appspot.com/7307098/diff/4001/src/pkg/crypto/tls/generate_cert.go#newcode45 > ...
11 years, 2 months ago (2013-02-12 08:12:01 UTC) #5
bradfitz
Hello golang-dev@googlegroups.com, shanemhansen@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 2 months ago (2013-02-12 16:18:45 UTC) #6
bradfitz
On Tue, Feb 12, 2013 at 12:08 AM, <shanemhansen@gmail.com> wrote: > > https://codereview.appspot.**com/7307098/diff/4001/src/pkg/** > crypto/tls/generate_cert.go<https://codereview.appspot.com/7307098/diff/4001/src/pkg/crypto/tls/generate_cert.go> ...
11 years, 2 months ago (2013-02-12 16:19:15 UTC) #7
agl2
On Tue, Feb 12, 2013 at 11:19 AM, Brad Fitzpatrick <bradfitz@golang.org> wrote: > Ah, great. ...
11 years, 2 months ago (2013-02-12 19:08:33 UTC) #8
shanemhansen
On 2013/02/12 19:08:33, agl2 wrote: > On Tue, Feb 12, 2013 at 11:19 AM, Brad ...
11 years, 2 months ago (2013-02-12 19:52:13 UTC) #9
bradfitz
Works for me. On Feb 12, 2013 11:52 AM, <shanemhansen@gmail.com> wrote: > On 2013/02/12 19:08:33, ...
11 years, 2 months ago (2013-02-12 19:54:15 UTC) #10
shanemhansen
On 2013/02/12 19:54:15, bradfitz wrote: > Works for me. > On Feb 12, 2013 11:52 ...
11 years, 2 months ago (2013-02-12 20:57:59 UTC) #11
bradfitz
Hello golang-dev@googlegroups.com, shanemhansen@gmail.com, agl@google.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 2 months ago (2013-02-13 01:05:22 UTC) #12
bradfitz
Sorry, misfire. Bad copy/paste on CL number. No new changes here. On Tue, Feb 12, ...
11 years, 2 months ago (2013-02-13 01:06:43 UTC) #13
rsc
You're going to abandon this CL, right?
11 years, 2 months ago (2013-02-13 23:04:55 UTC) #14
bradfitz
Sure, if the IP SAN stuff is actually happening. I did this in prep to ...
11 years, 2 months ago (2013-02-13 23:23:14 UTC) #15
rsc
11 years, 2 months ago (2013-02-14 02:44:54 UTC) #16
Sounds like agl is going to fix IP SAN for us, so let's leave it at that.
Sign in to reply to this message.

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