You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Tim Bannister <is...@jellybaby.net> on 2014/03/17 22:30:43 UTC

Re: [PATCH ASF bugzilla# 55897] prefork_mpm patch with SO_REUSEPORT support

I'm afraid I don't understand this particular part from httpd_trunk_so_reuseport.patch:

#ifndef SO_REUSEPORT
#define SO_REUSEPORT 15
#endif

Why 15? Is this going to be portable across different platforms?

-- 
Tim Bannister – isoma@jellybaby.net


RE: [PATCH ASF bugzilla# 55897] prefork_mpm patch with SO_REUSEPORT support

Posted by "Lu, Yingqi" <yi...@intel.com>.
Hi Tim,

Thanks for your email. 

SO_REUSEPORT feature is enabled on Linux kernel 3.9 and newer. The feature is defined at /usr/include/asm-generic/socket.h. 

With the old kernel, the definition is there, but is commented out. 
/*#define SO_REUSEPORT  15*/

The section of code below is just to define SO_REUSEPORT if it is not already being defined. The code after this is to detect if SO_REUSEPORT is supported or not.

I am using x86_64 systems with Linux. If anyone finds something different on your system, please let me know.

Thanks,
Yingqi

-----Original Message-----
From: Tim Bannister [mailto:isoma@jellybaby.net] 
Sent: Monday, March 17, 2014 2:31 PM
To: dev@httpd.apache.org
Subject: Re: [PATCH ASF bugzilla# 55897] prefork_mpm patch with SO_REUSEPORT support

I'm afraid I don't understand this particular part from httpd_trunk_so_reuseport.patch:

#ifndef SO_REUSEPORT
#define SO_REUSEPORT 15
#endif

Why 15? Is this going to be portable across different platforms?

-- 
Tim Bannister - isoma@jellybaby.net