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

Unified Diff: net/tools/quic/quic_server.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_server.cc
diff --git a/net/tools/quic/quic_server.cc b/net/tools/quic/quic_server.cc
index adc2df1f713d230778af87f9be9cfbb7c29f5f6a..3728fd80eb67967c6bc35f037fc71dd5291299e3 100644
--- a/net/tools/quic/quic_server.cc
+++ b/net/tools/quic/quic_server.cc
@@ -39,7 +39,7 @@ QuicServer::QuicServer()
packets_dropped_(0),
overflow_supported_(false),
use_recvmmsg_(false),
- crypto_config_(kSourceAddressTokenSecret) {
+ crypto_config_(kSourceAddressTokenSecret, QuicRandom::GetInstance()) {
// Use hardcoded crypto parameters for now.
config_.SetDefaults();
Initialize();
@@ -51,7 +51,7 @@ QuicServer::QuicServer(const QuicConfig& config)
overflow_supported_(false),
use_recvmmsg_(false),
config_(config),
- crypto_config_(kSourceAddressTokenSecret) {
+ crypto_config_(kSourceAddressTokenSecret, QuicRandom::GetInstance()) {
Initialize();
}
@@ -68,7 +68,7 @@ void QuicServer::Initialize() {
scoped_ptr<CryptoHandshakeMessage> scfg(
crypto_config_.AddDefaultConfig(
QuicRandom::GetInstance(), &clock,
- QuicCryptoServerConfig::kDefaultExpiry));
+ QuicCryptoServerConfig::ConfigOptions()));
}
QuicServer::~QuicServer() {
@@ -182,9 +182,9 @@ void QuicServer::OnEvent(int fd, EpollEvent* event) {
}
bool QuicServer::ReadAndDispatchSinglePacket(int fd,
- int port,
- QuicDispatcher* dispatcher,
- int* packets_dropped) {
+ int port,
+ QuicDispatcher* dispatcher,
+ int* packets_dropped) {
// Allocate some extra space so we can send an error if the client goes over
// the limit.
char buf[2 * kMaxPacketSize];

Powered by Google App Engine
This is Rietveld 408576698