trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject [trafficserver] branch master updated: Fixed issue where somaxconn was being set to 0 on OSX and preventing ATS to work
Date Thu, 26 Jan 2017 04:26:24 GMT
This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  2149929   Fixed issue where somaxconn was being set to 0 on OSX and preventing
ATS to work
2149929 is described below

commit 21499290aec55c6b6c4c67bc979fd7c7f1118484
Author: Bryan Call <bcall@apache.org>
AuthorDate: Thu Jan 26 10:20:44 2017 +0900

    Fixed issue where somaxconn was being set to 0 on OSX and preventing
    ATS to work
---
 lib/ts/ink_inet.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/ts/ink_inet.cc b/lib/ts/ink_inet.cc
index 2e67e2e..79dadf1 100644
--- a/lib/ts/ink_inet.cc
+++ b/lib/ts/ink_inet.cc
@@ -613,7 +613,8 @@ ats_tcp_somaxconn()
 
 /* Darwin version ... */
 #if HAVE_SYSCTLBYNAME
-  if (sysctlbyname("kern.ipc.somaxconn", nullptr, nullptr, &value, sizeof(value)) ==
0) {
+  size_t value_size = sizeof(value);
+  if (sysctlbyname("kern.ipc.somaxconn", &value, &value_size, nullptr, 0) == 0) {
     return value;
   }
 #endif

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Mime
View raw message