]> Cypherpunks repositories - gostls13.git/commit
net/http: don't reuse conns after incomplete 100-continue requests
authorBrad Fitzpatrick <bradfitz@golang.org>
Sun, 5 Jul 2015 16:15:11 +0000 (09:15 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 15 Jul 2015 23:06:23 +0000 (23:06 +0000)
commit88fc3587ec24bf9890f9fbc1be33e313c5d99bbc
treed77429f67f7e35aec3e08c83ce9a38b7250af972
parent2b9e5a7165bce1058de7a144ca9d166df4484d02
net/http: don't reuse conns after incomplete 100-continue requests

If we receive an HTTP request with "Expect: 100-continue" and the
Handler never read to EOF, the conn is in an unknown state.
Don't reuse that connection.

Fixes #11549

Change-Id: I5be93e7a54e899d615b05f72bdcf12b25304bc60
Reviewed-on: https://go-review.googlesource.com/12262
Reviewed-by: Andrew Gerrand <adg@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/serve_test.go
src/net/http/server.go