forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change EOL setting of net/socket/client_socket_pool.cc
Will change the actual EOL in CL http://codereview.chromium.org/8073018. TBR=maruel@chromium.org Review URL: http://codereview.chromium.org/8242001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105025 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
wangxianzhu@chromium.org
committed
Oct 12, 2011
1 parent
90e33a8
commit 554cee3
Showing
1 changed file
with
33 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,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 | ||
// 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 |