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

Unified Diff: net/quic/quic_connection.cc

Issue 550703003: Fix a flaky QUIC end_to_end_test when the socket was suddenly unwritable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_crash_bug_74792668
Patch Set: Created 6 years, 3 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/quic/quic_connection_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection.cc
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
index 33c489a479e9bf9d3d485f8600f62e3dbe4b7be2..47361109c6a924535275644f233353e0bcb29978 100644
--- a/net/quic/quic_connection.cc
+++ b/net/quic/quic_connection.cc
@@ -1290,6 +1290,10 @@ bool QuicConnection::ShouldGeneratePacket(
}
bool QuicConnection::CanWrite(HasRetransmittableData retransmittable) {
+ if (!connected_) {
+ return false;
+ }
+
if (writer_->IsWriteBlocked()) {
visitor_->OnWriteBlocked();
return false;
« no previous file with comments | « no previous file | net/quic/quic_connection_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698