diff options
author | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-08 18:50:28 +0000 |
---|---|---|
committer | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-08 18:50:28 +0000 |
commit | 3f51337919c8a7afd5fe1890ddc600e62bd938ac (patch) | |
tree | 59271aad63a5a3dc2eeb8ce7a22434c69a40c7c4 /net | |
parent | 261737c25ad33326965680cd5c8eb1a8ade715ef (diff) | |
download | chromium_src-3f51337919c8a7afd5fe1890ddc600e62bd938ac.zip chromium_src-3f51337919c8a7afd5fe1890ddc600e62bd938ac.tar.gz chromium_src-3f51337919c8a7afd5fe1890ddc600e62bd938ac.tar.bz2 |
Responses using connection close to signal end of message were failing to
render because we didn't close out the SPDY stream.
Fix from Kevin Lindsay (kelindsay@gmail.com)
http://codereview.chromium.org/6597074/
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6628083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77309 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/tools/flip_server/http_interface.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/tools/flip_server/http_interface.cc b/net/tools/flip_server/http_interface.cc index 6263f3a..9cd1331 100644 --- a/net/tools/flip_server/http_interface.cc +++ b/net/tools/flip_server/http_interface.cc @@ -171,6 +171,13 @@ void HttpSM::ResetForNewConnection() { << "to: " << connection_->server_ip_ << ":" << connection_->server_port_ << " "; } + // Message has not been fully read, either it is incomplete or the + // server is closing the connection to signal message end. + if (!MessageFullyRead()) { + VLOG(2) << "HTTP response closed before end of file detected. " + << "Sending EOF to spdy."; + sm_spdy_interface_->SendEOF(stream_id_); + } seq_num_ = 0; output_ordering_.Reset(); http_framer_->Reset(); |