summaryrefslogtreecommitdiffstats
path: root/net/quic/reliable_quic_stream.cc
diff options
context:
space:
mode:
authorrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-13 07:41:59 +0000
committerrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-13 07:41:59 +0000
commitbbb1007532bda442f71c6729d2369a2cab2ea36f (patch)
tree19bc79b07bec1164fc37398ec5d8303f1e607f2c /net/quic/reliable_quic_stream.cc
parentbd3093c384c18a559e4449512a85d54d714b1d32 (diff)
downloadchromium_src-bbb1007532bda442f71c6729d2369a2cab2ea36f.zip
chromium_src-bbb1007532bda442f71c6729d2369a2cab2ea36f.tar.gz
chromium_src-bbb1007532bda442f71c6729d2369a2cab2ea36f.tar.bz2
Land Recent QUIC Changes.
Fix RttStats windowing so if no recent min rtt window is specified, recent_min_rtt is the same as min_rtt. recent_min_rtt is only used within BBR. Merge internal change: 69034369 https://codereview.chromium.org/337433002/ Close QUIC connection with correct flow control error code, added a test for this, and tidyup of a couple of other tests. Close QUIC connection with correct flow control error code. Merge internal change: 69012148 https://codereview.chromium.org/327393004/ Sync'ing DefaultRandom code with internal code. Merge internal change: 69007888 https://codereview.chromium.org/335553002/ Fix some clang_tidy warnings in quic_connection_test. Merge internal change: 69001838 https://codereview.chromium.org/335543002/ Refactor the Connection and Generator so the Creator is completely encapsulated by the Generator. Merge internal change: 69000832 https://codereview.chromium.org/329933003/ API changes to Write path Session on down for FEC protection. Added |fec_protection| flag to data writes to QuicSession and subclasses, down to QuicConnection and QuicPacketGenerator. This flag is used by the packet generator to turn on FEC protection for the flagged data. Merge internal change: 68993204 https://codereview.chromium.org/335533002/ Wrap all tag printing in TagToString Merge internal change: 68862495 https://codereview.chromium.org/332523005/ QuicStreamSequencer closes the connection on receipt of frames overlapping with buffered data. Merge internal change: 68858381 https://codereview.chromium.org/334603002/ Fixed lint errors: At least two spaces is best between code and comments Merge internal change: 68847097 https://codereview.chromium.org/334583002/ R=rch@chromium.org Review URL: https://codereview.chromium.org/331573002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276964 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/quic/reliable_quic_stream.cc')
-rw-r--r--net/quic/reliable_quic_stream.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/quic/reliable_quic_stream.cc b/net/quic/reliable_quic_stream.cc
index 505666e..32ef6d3 100644
--- a/net/quic/reliable_quic_stream.cc
+++ b/net/quic/reliable_quic_stream.cc
@@ -360,8 +360,10 @@ QuicConsumedData ReliableQuicStream::WritevData(
IOVector data;
data.AppendIovecAtMostBytes(iov, iov_count, write_length);
+ // TODO(jri): Use the correct FecProtection based on FecPolicy on stream.
QuicConsumedData consumed_data = session()->WritevData(
- id(), data, stream_bytes_written_, fin, ack_notifier_delegate);
+ id(), data, stream_bytes_written_, fin, MAY_FEC_PROTECT,
+ ack_notifier_delegate);
stream_bytes_written_ += consumed_data.bytes_consumed;
AddBytesSent(consumed_data.bytes_consumed);