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

[trafficserver] branch 7.1.x 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.

zwoop pushed a commit to branch 7.1.x
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

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

commit a87f3f2015c009444b36a281b187021707dd9644
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
    
    (cherry picked from commit 21499290aec55c6b6c4c67bc979fd7c7f1118484)
---
 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 b5791b3..15843eb 100644
--- a/lib/ts/ink_inet.cc
+++ b/lib/ts/ink_inet.cc
@@ -666,7 +666,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>'].