summaryrefslogtreecommitdiffstats
path: root/net/quic/quic_sent_packet_manager.cc
diff options
context:
space:
mode:
authorfayang <fayang@chromium.org>2015-12-28 09:27:14 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-28 17:28:32 +0000
commita31a74b13ef5d8c7252138f147a5716c9682cab7 (patch)
treeef2f6049ad501dffc4e0da1bb18f893c7f69e563 /net/quic/quic_sent_packet_manager.cc
parent8d1d7fa84050223aa355fd55f81445a2595e64ea (diff)
downloadchromium_src-a31a74b13ef5d8c7252138f147a5716c9682cab7.zip
chromium_src-a31a74b13ef5d8c7252138f147a5716c9682cab7.tar.gz
chromium_src-a31a74b13ef5d8c7252138f147a5716c9682cab7.tar.bz2
Landing Recent QUIC changes until 12/18/2015 13:57 UTC
relnote: Replace last remaining NULLs in gfe/quic with nullptr. No behavior change. Merge internal change: 110570650 https://codereview.chromium.org/1542753004/ relnote: Add PushResponse() in QuicSimpleServerStream. Merge internal change: 110554875 https://codereview.chromium.org/1545793002/ relnote: Adding details to most quic connection close calls. This is a precursor to removing CloseConnection[without details] entirely. This is so we can to be able disambiguate various causes of specific error codes when logging them server side. We can always add more details where useful at a later point. Merge internal change: 110546286 https://codereview.chromium.org/1548783002/ relnote: Add path_id to QuicSentPacketManager and QuicSentPacketManager::PendingRetransmission. No functional change. Merge internal change: 110540464 https://codereview.chromium.org/1542773004/ relnote: Add class QuicMultipathReceivedPacketManager (not in use currently). Merge internal change: 110454683 https://codereview.chromium.org/1548703002/ relnote: If the user supplied a request body in hex, print response body in hex as well. In addition, convert hex in both cases to printable ASCII characters where possible. Example output: Request: headers: { :authority:test.example.com :path:/net.grpc.examples.QuicGreeter/SayHello :scheme:http :method:POST te:trailers grpc-encoding:identity grpc-accept-encoding:identity,deflate,gzip content-type:application/grpc user-agent:grpc-c++/0.12.0.0 grpc-c/0.12.0.0 (linux) } body hex: 00000000070a05776f726c64 body ascii: . . . . . . . w o r l d Response: headers: HTTP/1.1 200 OK grpc-encoding: identity grpc-accept-encoding: identity,deflate,gzip content-type: application/grpc body hex: 0a0b48656c6c6f20776f726c64 body ascii: . . H e l l o w o r l d trailers: { grpc-status:0 } Request succeeded (200). Merge internal change: 110446931 https://codereview.chromium.org/1545703002/ relnote: Drop not awaited packets before decrypt them. Merge internal change: 110403572 https://codereview.chromium.org/1546633002/ relnote: Add path_id to SerializedPacket. No functional change. Merge internal change: 110393215 https://codereview.chromium.org/1542123002/ relnote: Drop packets which are larger than kMaxPacketSize, instead of closing the connection with QUIC_PACKET_TOO_LARGE. Not flag protected. Merge internal change: 110290154 https://codereview.chromium.org/1543703002/ relnote: Adds a DCHECK that the host argument to QuicInMemoryCache::AddResponse is not empty. An empty host works fine in google3, but breaks tests in Chromium for $reasons. Merge internal change: 110286048 https://codereview.chromium.org/1544563002/ relnote: Delete unused methods in QuicServerSession Merge internal change: 110254138 https://codereview.chromium.org/1539333003/ relnote: If message body specified with --body_hex then print out the user provided string rather than the binary body. Merge internal change: 110244865 https://codereview.chromium.org/1538373002/ R=rch@chromium.org Review URL: https://codereview.chromium.org/1541263002 Cr-Commit-Position: refs/heads/master@{#366986}
Diffstat (limited to 'net/quic/quic_sent_packet_manager.cc')
-rw-r--r--net/quic/quic_sent_packet_manager.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/quic/quic_sent_packet_manager.cc b/net/quic/quic_sent_packet_manager.cc
index d4f0f16..3a39ada 100644
--- a/net/quic/quic_sent_packet_manager.cc
+++ b/net/quic/quic_sent_packet_manager.cc
@@ -63,12 +63,14 @@ bool HasCryptoHandshake(const TransmissionInfo& transmission_info) {
QuicSentPacketManager::QuicSentPacketManager(
Perspective perspective,
+ QuicPathId path_id,
const QuicClock* clock,
QuicConnectionStats* stats,
CongestionControlType congestion_control_type,
LossDetectionType loss_type)
: unacked_packets_(),
perspective_(perspective),
+ path_id_(path_id),
clock_(clock),
stats_(stats),
debug_delegate_(nullptr),
@@ -459,7 +461,7 @@ QuicSentPacketManager::NextPendingRetransmission() {
unacked_packets_.GetTransmissionInfo(packet_number);
DCHECK(transmission_info.retransmittable_frames);
- return PendingRetransmission(packet_number, transmission_type,
+ return PendingRetransmission(path_id_, packet_number, transmission_type,
*transmission_info.retransmittable_frames,
transmission_info.encryption_level,
transmission_info.packet_number_length);