• Brad Fitzpatrick's avatar
    http2/h2demo: fix the HTTP/1-vs-HTTP/2 demo after HSTS breakage · 65e2d4e1
    Brad Fitzpatrick authored
    We were previously demoing HTTP/1 vs HTTP/2 loading performance using
    http:// scheme (which uses HTTP/1 implicitly) on the http2.golang.org
    domain for HTTP/1, and https://http2.golang.org for HTTP/2.
    
    But then golang.org got into the HSTS preload list, forcing all
    *.golang.org to only be HTTPS.
    
    So now, rather than find a new base domain name, to compare against
    HTTP/1 we instead use https://http1.golang.org/ and then use the SNI
    name to determine whether we advertise "h2".
    
    Also, some cleanup:
    
    * remove launch.go; it's no longer used since we moved to kubernetes
    * use a multi-stage Dockerfile rather than the hacky workarounds
      that used to be necessary to simulate multiple stages
    * modernize the kubernetes deployment stuff to match how we do
      it elsewhere ("gcloud docker" is long deprecated too)
    * update from Go 1.9 to Go 1.11 for the prod base
    
    Fixes golang/go#30033
    
    Change-Id: I9f6b1f496d4005e5a08bf990843d440005a5b3e8
    Reviewed-on: https://go-review.googlesource.com/c/160857Reviewed-by: 's avatarAndrew Bonventre <andybons@golang.org>
    65e2d4e1
Name
Last commit
Last update
..
h2c Loading commit data...
h2demo Loading commit data...
h2i Loading commit data...
hpack Loading commit data...
testdata Loading commit data...
.gitignore Loading commit data...
Dockerfile Loading commit data...
Makefile Loading commit data...
README Loading commit data...
ciphers.go Loading commit data...
ciphers_test.go Loading commit data...
client_conn_pool.go Loading commit data...
databuffer.go Loading commit data...
databuffer_test.go Loading commit data...
errors.go Loading commit data...
errors_test.go Loading commit data...
flow.go Loading commit data...
flow_test.go Loading commit data...
frame.go Loading commit data...
frame_test.go Loading commit data...
go111.go Loading commit data...
gotrack.go Loading commit data...
gotrack_test.go Loading commit data...
headermap.go Loading commit data...
http2.go Loading commit data...
http2_test.go Loading commit data...
not_go111.go Loading commit data...
pipe.go Loading commit data...
pipe_test.go Loading commit data...
server.go Loading commit data...
server_push_test.go Loading commit data...
server_test.go Loading commit data...
transport.go Loading commit data...
transport_test.go Loading commit data...
write.go Loading commit data...
writesched.go Loading commit data...
writesched_priority.go Loading commit data...
writesched_priority_test.go Loading commit data...
writesched_random.go Loading commit data...
writesched_random_test.go Loading commit data...
writesched_test.go Loading commit data...
z_spec_test.go Loading commit data...