You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2017/01/26 04:26:24 UTC

[trafficserver] branch master updated: Fixed issue where somaxconn was being set to 0 on OSX and preventing ATS to work

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 <bc...@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" <co...@trafficserver.apache.org>'].