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

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

Issue 15937012: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small bug fixes Created 7 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
Index: net/tools/quic/quic_dispatcher.cc
diff --git a/net/tools/quic/quic_dispatcher.cc b/net/tools/quic/quic_dispatcher.cc
index 14de2b0b40ed7cf8aa562481cd44e02109e360a9..c84b4e8cbef9013932db0d99cc41be94e0cc62e8 100644
--- a/net/tools/quic/quic_dispatcher.cc
+++ b/net/tools/quic/quic_dispatcher.cc
@@ -58,6 +58,12 @@ int QuicDispatcher::WritePacket(const char* buffer, size_t buf_len,
const IPEndPoint& peer_address,
QuicBlockedWriterInterface* writer,
int* error) {
+ if (write_blocked_) {
+ write_blocked_list_.AddBlockedObject(writer);
+ *error = EAGAIN;
+ return -1;
+ }
+
int rc = QuicSocketUtils::WritePacket(fd_, buffer, buf_len,
self_address, peer_address,
error);

Powered by Google App Engine
This is Rietveld 408576698