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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // A toy server, which listens on a specified address for QUIC traffic and 5 // A toy server, which listens on a specified address for QUIC traffic and
6 // handles incoming responses. 6 // handles incoming responses.
7 7
8 #ifndef NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_ 8 #ifndef NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_
9 #define NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_ 9 #define NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 // The target buffer of the current read. 109 // The target buffer of the current read.
110 scoped_refptr<IOBufferWithSize> read_buffer_; 110 scoped_refptr<IOBufferWithSize> read_buffer_;
111 111
112 // The source address of the current read. 112 // The source address of the current read.
113 IPEndPoint client_address_; 113 IPEndPoint client_address_;
114 114
115 // The log to use for the socket. 115 // The log to use for the socket.
116 NetLog net_log_; 116 NetLog net_log_;
117 117
118 bool check_packet_buffer_;
119
118 base::WeakPtrFactory<QuicSimpleServer> weak_factory_; 120 base::WeakPtrFactory<QuicSimpleServer> weak_factory_;
119 121
120 DISALLOW_COPY_AND_ASSIGN(QuicSimpleServer); 122 DISALLOW_COPY_AND_ASSIGN(QuicSimpleServer);
121 }; 123 };
122 124
123 } // namespace net 125 } // namespace net
124 126
125 #endif // NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_ 127 #endif // NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698