Bug 55894 - patch for SO_REUSEPORT
Summary: patch for SO_REUSEPORT
Status: NEW
Alias: None
Product: APR
Classification: Unclassified
Component: APR (show other bugs)
Version: 1.5.0
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-17 11:04 UTC by Yingqi.Lu
Modified: 2014-01-11 21:07 UTC (History)
2 users (show)



Attachments
patch for SO_REUSEPORT (2.65 KB, text/plain)
2013-12-17 11:04 UTC, Yingqi.Lu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yingqi.Lu 2013-12-17 11:04:35 UTC
Created attachment 31122 [details]
patch for SO_REUSEPORT

Dear all,

In Linux kernel newer than 3.9, SO_REUSEPORT is enabled. This feature allows multiple sockets listen to the same IP address:port and automatically round robins connections. We created this prototype patch to include this option in the apr_socket_opt_set().

Please refer to the attached patch file for details. Your feedback is very much appreciated.

Thanks,
Yingqi Lu
Comment 1 Eric Covener 2013-12-17 11:33:19 UTC
Doesn't seem safe to try sockopt 15 on every platform, it should be explicitly rejected elsewhere even if you're trying to avoid the build-time autoconf test.

I'm also not sure how useful it is in APR if it's only implemented on one platform