diff options
author | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-21 22:36:00 +0000 |
---|---|---|
committer | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-21 22:36:00 +0000 |
commit | 48da68a28300bbb1a36af407c3107b173062f26e (patch) | |
tree | c175252790498d0eee0430edee0024f9291a27cb /net/flip | |
parent | cbfc3f7409d0d99e33f761d0918615a120c3e116 (diff) | |
download | chromium_src-48da68a28300bbb1a36af407c3107b173062f26e.zip chromium_src-48da68a28300bbb1a36af407c3107b173062f26e.tar.gz chromium_src-48da68a28300bbb1a36af407c3107b173062f26e.tar.bz2 |
When we had upload data, but it was a zero-length upload
data, we would not set the FIN flag, which would stall
the request upload.
This fixes gmail.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/414077
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32762 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/flip')
-rw-r--r-- | net/flip/flip_session.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/flip/flip_session.cc b/net/flip/flip_session.cc index 8164f1d..9b1a772 100644 --- a/net/flip/flip_session.cc +++ b/net/flip/flip_session.cc @@ -189,7 +189,7 @@ int FlipSession::CreateStream(FlipDelegate* delegate) { CreateFlipHeadersFromHttpRequest(delegate->request(), &headers); flip::FlipControlFlags flags = flip::CONTROL_FLAG_NONE; - if (!delegate->data()) + if (!delegate->data() || !delegate->data()->size()) flags = flip::CONTROL_FLAG_FIN; // Create a SYN_STREAM packet and add to the output queue. |