5 ms·
Pretty sure the demo server supports keep-alive, just as all Go net/http servers do by default: https://github.com/bradfitz/http2/blob/master/h2demo/h2demo.go h
by bgentry 12y ago
Pretty sure the demo server supports keep-alive, just as all Go net/http servers do by default: https://github.com/bradfitz/http2/blob/master/h2demo/h2demo.go https://github.com/bradfitz/http2/blob/master/h2demo/h2demo....
- bsdetector 12y agoThere's no "Connection: keep-alive" in the response header. If they purposely turned it off that's even worse.
- lucian1900 12y agoThat's because it's the default in HTTP 1.1. The server would need to send "Connection: close" to disable keep-alive.
- bsdetector 12y agoApparently "connection: keep-alive" is needed to enable pipelining in the browsers: http://www.guypo.com/http-pipelining-big-in-mobile/ http://www.guypo.com/http-pipelining-big-in-mobile/