----- Original Message -----
> Updated Branches:
>   refs/heads/master e70a7c878 -> d3bc98bca
>
>
> TS-1211 Read backlog config value to set the listen backlog
>
>
> Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
> Commit:
> http://git-wip-us.apache.org/repos/asf/trafficserver/commit/d3bc98bc
> Tree:
> http://git-wip-us.apache.org/repos/asf/trafficserver/tree/d3bc98bc
> Diff:
> http://git-wip-us.apache.org/repos/asf/trafficserver/diff/d3bc98bc
>
> Branch: refs/heads/master
> Commit: d3bc98bca9c13595409ad58b9be38ad74be52211
> Parents: e70a7c8
> Author: Bryan Call <bryan_c...@yahoo.com>
> Authored: Wed Apr 18 16:13:32 2012 -0700
> Committer: Bryan Call <bryan_c...@yahoo.com>
> Committed: Wed Apr 18 16:13:32 2012 -0700
>
> ----------------------------------------------------------------------
>  mgmt/LocalManager.cc |   11 ++++++++++-
>  1 files changed, 10 insertions(+), 1 deletions(-)
> ----------------------------------------------------------------------
>
>
> http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d3bc98bc/mgmt/LocalManager.cc
> ----------------------------------------------------------------------
> diff --git a/mgmt/LocalManager.cc b/mgmt/LocalManager.cc
> index f39fa71..43b6641 100644
> --- a/mgmt/LocalManager.cc
> +++ b/mgmt/LocalManager.cc
> @@ -1082,7 +1082,16 @@ LocalManager::listenForProxy()
>      if (ts::NO_FD == p.m_fd) {
>        this->bindProxyPort(p);
>      }
> -    if ((listen(p.m_fd, 1024)) < 0) {
> +
> +    // read backlong configuration value and overwrite the default
> value if found
> +    int backlog = 1024;

Shouldn't we get this value from the OS?

> +    bool found;
> +    RecInt config_backlog =
> REC_readInteger("proxy.config.net.listen_backlog", &found);
> +    if (found) {
> +      backlog = config_backlog;
> +    }
> +
> +    if ((listen(p.m_fd, backlog)) < 0) {
>        mgmt_fatal(stderr, "[LocalManager::listenForProxy] Unable to
>        listen on socket: %d\n", p.m_port);
>      }
>      mgmt_log(stderr, "[LocalManager::listenForProxy] Listening on
>      port: %d\n", p.m_port);

i

--
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.ga...@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE

Reply via email to