DescriptionHttpStreamParser: Don't reuse sockets which receive unparsed data.
If HttpStreamParser has extra data left over after consuming a valid
HTTP/1.x response on a socket, it would still allow the socket to be
reused if it was connected and idle. Since we have no idea what the
data actually was, this just seems like a bad idea. This CL changes
that behavior, so such sockets are no longer considered reuseable.
This does have the downside of papering over server bugs, but it
still seems like the right way to go.
BUG=603140
Committed: https://crrev.com/5f94fda863b8540f99eb571b4f94c8dd24dba406
Cr-Commit-Position: refs/heads/master@{#397504}
Patch Set 1 #Patch Set 2 : Fix draining responses #Patch Set 3 : More fixes, new test #Patch Set 4 : Fix drainer test ('True' means closed...) #
Total comments: 4
Patch Set 5 : Switch to simpler solution #Patch Set 6 : Remove more stuff #Patch Set 7 : Removed a bit too much, fix case with body #
Total comments: 5
Patch Set 8 : Response to comments #Patch Set 9 : response #Patch Set 10 : oops #
Messages
Total messages: 16 (6 generated)
|