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

Unified Diff: net/tools/quic/quic_simple_server.h

Issue 2313053002: Limits only 16 new QUIC connections can be opened per socket event for QuicSimpleServer. Fix test f… (Closed)
Patch Set: don't reset read_pending_ while wait async read Created 4 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
Index: net/tools/quic/quic_simple_server.h
diff --git a/net/tools/quic/quic_simple_server.h b/net/tools/quic/quic_simple_server.h
index 4b24d9cef7382361f639824559d2660b9e6969a2..51cafffe65980628081ba472f99e82dba56f92a0 100644
--- a/net/tools/quic/quic_simple_server.h
+++ b/net/tools/quic/quic_simple_server.h
@@ -49,11 +49,13 @@ class QuicSimpleServer {
// Start reading on the socket. On asynchronous reads, this registers
// OnReadComplete as the callback, which will then call StartReading again.
- void StartReading();
+ void StartReading(bool check_packet_buffer);
// Called on reads that complete asynchronously. Dispatches the packet and
// continues the read loop.
- void OnReadComplete(int result);
+ void OnAsyncReadComplete(int result);
+
+ void OnReadComplete(int result, bool check_packet_buffer);
void SetStrikeRegisterNoStartupPeriod() {
crypto_config_.set_strike_register_no_startup_period();

Powered by Google App Engine
This is Rietveld 408576698