blob: 06e2805e979de4c9b006e323f8c33c031124c28a [file] [log] [blame]
[email protected]554cee372011-10-12 06:54:081// Copyright (c) 2010 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "net/socket/client_socket_pool.h"
6
7namespace {
8
9// The maximum duration, in seconds, to keep used idle persistent sockets
10// alive.
11// TODO(ziadh): Change this timeout after getting histogram data on how long it
12// should be.
13int g_unused_idle_socket_timeout = 10;
14
15} // namespace
16
17namespace net {
18
19// static
20int ClientSocketPool::unused_idle_socket_timeout() {
21 return g_unused_idle_socket_timeout;
22}
23
24// static
25void ClientSocketPool::set_unused_idle_socket_timeout(int timeout) {
26 g_unused_idle_socket_timeout = timeout;
27}
28
29ClientSocketPool::ClientSocketPool() {}
30
31ClientSocketPool::~ClientSocketPool() {}
32
33} // namespace net