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

Unified Diff: net/tools/quic/quic_dispatcher.cc

Issue 1135113003: Added support for stateless time-wait entries. Will be used in a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Remove_flag_quic_use_optimized_packet_reader_93331362
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | net/tools/quic/quic_dispatcher_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_dispatcher.cc
diff --git a/net/tools/quic/quic_dispatcher.cc b/net/tools/quic/quic_dispatcher.cc
index 1b252ef36da88d07afbc40369248a527da4c5c6b..64f7bb09965bd214452abbe1714fe7d71c707d4b 100644
--- a/net/tools/quic/quic_dispatcher.cc
+++ b/net/tools/quic/quic_dispatcher.cc
@@ -298,7 +298,8 @@ void QuicDispatcher::OnUnauthenticatedHeader(const QuicPacketHeader& header) {
DVLOG(1) << "Adding connection ID " << connection_id
<< "to time-wait list.";
time_wait_list_manager_->AddConnectionIdToTimeWait(
- connection_id, framer_.version(), nullptr);
+ connection_id, framer_.version(),
+ /*connection_rejected_statelessly=*/false, nullptr);
DCHECK(time_wait_list_manager_->IsConnectionIdInTimeWait(
header.public_header.connection_id));
time_wait_list_manager_->ProcessPacket(
@@ -348,9 +349,9 @@ void QuicDispatcher::CleanUpSession(SessionMap::iterator it) {
QuicEncryptedPacket* connection_close_packet =
connection->ReleaseConnectionClosePacket();
write_blocked_list_.erase(connection);
- time_wait_list_manager_->AddConnectionIdToTimeWait(it->first,
- connection->version(),
- connection_close_packet);
+ time_wait_list_manager_->AddConnectionIdToTimeWait(
+ it->first, connection->version(),
+ /*connection_rejected_statelessly=*/false, connection_close_packet);
session_map_.erase(it);
}
« no previous file with comments | « no previous file | net/tools/quic/quic_dispatcher_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698