summaryrefslogtreecommitdiffstats
path: root/net/socket/client_socket_pool.cc
blob: a54109e582d8cd3b63e47492db1a504af2a224c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/socket/client_socket_pool.h"

namespace {

// The maximum duration, in seconds, to keep used idle persistent sockets
// alive.
// TODO(ziadh): Change this timeout after getting histogram data on how long it
// should be.
int g_unused_idle_socket_timeout = 10;

}  // namespace

namespace net {

// static
int ClientSocketPool::unused_idle_socket_timeout() {
  return g_unused_idle_socket_timeout;
}

// static
void ClientSocketPool::set_unused_idle_socket_timeout(int timeout) {
  g_unused_idle_socket_timeout = timeout;
}

ClientSocketPool::ClientSocketPool() {}

ClientSocketPool::~ClientSocketPool() {}

}  // namespace net