Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Unified Diff: net/flip/flip_session.cc

Issue 338055: Update the unit test to test the FLIP client writes as well... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« net/flip/flip_network_transaction_unittest.cc ('K') | « net/flip/flip_session.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/flip/flip_session.cc
===================================================================
--- net/flip/flip_session.cc (revision 30221)
+++ net/flip/flip_session.cc (working copy)
@@ -270,10 +270,13 @@
flip::FlipHeaderBlock headers;
CreateFlipHeadersFromHttpRequest(delegate->request(), &headers);
+ flip::FlipControlFlags flags = flip::CONTROL_FLAG_NONE;
+ if (!delegate->request()->upload_data)
+ flags = flip::CONTROL_FLAG_FIN;
+
// Create a SYN_STREAM packet and add to the output queue.
flip::FlipSynStreamControlFrame* syn_frame =
- flip_framer_.CreateSynStream(stream_id, priority,
- flip::CONTROL_FLAG_NONE, false, &headers);
+ flip_framer_.CreateSynStream(stream_id, priority, flags, false, &headers);
int length = sizeof(flip::FlipFrame) + syn_frame->length();
IOBufferWithSize* buffer =
new IOBufferWithSize(length);
« net/flip/flip_network_transaction_unittest.cc ('K') | « net/flip/flip_session.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698