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

Side by Side Diff: net/tools/quic/test_tools/quic_dispatcher_peer.h

Issue 2310543002: Limits only 16 new QUIC connections can be opened per epoll event. (Closed)
Patch Set: Limits only 16 new QUIC connections can be opened per epoll event. 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
« no previous file with comments | « net/tools/quic/quic_server_test.cc ('k') | net/tools/quic/test_tools/quic_dispatcher_peer.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_ 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_
6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_ 6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_
7 7
8 #include "net/tools/quic/quic_dispatcher.h" 8 #include "net/tools/quic/quic_dispatcher.h"
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 29 matching lines...) Expand all
40 // Get the dispatcher's record of the last error reported to its framer 40 // Get the dispatcher's record of the last error reported to its framer
41 // visitor's OnError() method. Then set that record to QUIC_NO_ERROR. 41 // visitor's OnError() method. Then set that record to QUIC_NO_ERROR.
42 static QuicErrorCode GetAndClearLastError(QuicDispatcher* dispatcher); 42 static QuicErrorCode GetAndClearLastError(QuicDispatcher* dispatcher);
43 43
44 static QuicBufferedPacketStore* GetBufferedPackets( 44 static QuicBufferedPacketStore* GetBufferedPackets(
45 QuicDispatcher* dispatcher); 45 QuicDispatcher* dispatcher);
46 46
47 static const QuicDispatcher::SessionMap& session_map( 47 static const QuicDispatcher::SessionMap& session_map(
48 QuicDispatcher* dispatcher); 48 QuicDispatcher* dispatcher);
49 49
50 static void set_new_sessions_allowed_per_event_loop(
51 QuicDispatcher* dispatcher,
52 size_t num_session_allowed);
53
50 private: 54 private:
51 DISALLOW_COPY_AND_ASSIGN(QuicDispatcherPeer); 55 DISALLOW_COPY_AND_ASSIGN(QuicDispatcherPeer);
52 }; 56 };
53 57
54 } // namespace test 58 } // namespace test
55 } // namespace net 59 } // namespace net
56 60
57 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_ 61 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_server_test.cc ('k') | net/tools/quic/test_tools/quic_dispatcher_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698