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

Side by Side Diff: net/quic/quic_connection.cc

Issue 1028633006: Low-impact. Dispatcher now uses QuicServerSession, not QuicSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Limit_send_algorithm_max_CWND_88747441
Patch Set: Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | net/quic/quic_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/quic_connection.h" 5 #include "net/quic/quic_connection.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after
1898 void QuicConnection::CloseConnection(QuicErrorCode error, bool from_peer) { 1898 void QuicConnection::CloseConnection(QuicErrorCode error, bool from_peer) {
1899 if (!connected_) { 1899 if (!connected_) {
1900 DLOG(DFATAL) << "Error: attempt to close an already closed connection" 1900 DLOG(DFATAL) << "Error: attempt to close an already closed connection"
1901 << base::debug::StackTrace().ToString(); 1901 << base::debug::StackTrace().ToString();
1902 return; 1902 return;
1903 } 1903 }
1904 connected_ = false; 1904 connected_ = false;
1905 if (debug_visitor_ != nullptr) { 1905 if (debug_visitor_ != nullptr) {
1906 debug_visitor_->OnConnectionClosed(error, from_peer); 1906 debug_visitor_->OnConnectionClosed(error, from_peer);
1907 } 1907 }
1908 DCHECK(visitor_ != nullptr);
1908 visitor_->OnConnectionClosed(error, from_peer); 1909 visitor_->OnConnectionClosed(error, from_peer);
1909 // Cancel the alarms so they don't trigger any action now that the 1910 // Cancel the alarms so they don't trigger any action now that the
1910 // connection is closed. 1911 // connection is closed.
1911 ack_alarm_->Cancel(); 1912 ack_alarm_->Cancel();
1912 ping_alarm_->Cancel(); 1913 ping_alarm_->Cancel();
1913 fec_alarm_->Cancel(); 1914 fec_alarm_->Cancel();
1914 resume_writes_alarm_->Cancel(); 1915 resume_writes_alarm_->Cancel();
1915 retransmission_alarm_->Cancel(); 1916 retransmission_alarm_->Cancel();
1916 send_alarm_->Cancel(); 1917 send_alarm_->Cancel();
1917 timeout_alarm_->Cancel(); 1918 timeout_alarm_->Cancel();
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
2125 } 2126 }
2126 for (const QuicFrame& frame : retransmittable_frames->frames()) { 2127 for (const QuicFrame& frame : retransmittable_frames->frames()) {
2127 if (frame.type == CONNECTION_CLOSE_FRAME) { 2128 if (frame.type == CONNECTION_CLOSE_FRAME) {
2128 return true; 2129 return true;
2129 } 2130 }
2130 } 2131 }
2131 return false; 2132 return false;
2132 } 2133 }
2133 2134
2134 } // namespace net 2135 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698