add SO_REUSEPORT support for socket_set_option()
| Request #49341 | add SO_REUSEPORT support for socket_set_option() | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2009-08-24 00:26 UTC | Modified: | 2021-06-10 16:55 UTC |
|
||||||||||
| From: | jolan at gormsby dot com | Assigned: | cmb (profile) | |||||||||||
| Status: | Closed | Package: | Sockets related | |||||||||||
| PHP Version: | 5.2.10 | OS: | OpenBSD 4.6-current | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2009-08-24 00:26 UTC] jolan at gormsby dot com
Description:
------------
SO_REUSEPORT is needed to allow separate processes to bind to the same
port. Add the following to ext/sockets/sockets.c after SO_REUSEADDR:
#ifdef SO_REUSEPORT
REGISTER_LONG_CONSTANT("SO_REUSEPORT", SO_REUSEPORT, CONST_CS
| CONST_PERSISTENT);
#endif
I believe SO_REUSEPORT is not available under Windows, hence the ifdef.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2009-09-09 06:11 UTC] netnghia at yahoo dot com
[2009-09-09 20:26 UTC] jolan at gormsby dot com
[2010-12-20 13:22 UTC] jani@php.net
-Package: Feature/Change Request +Package: Sockets related
[2017-08-29 11:48 UTC] michal dot brzuchalski at gmail dot com
[2021-06-10 16:55 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
[2021-06-10 16:55 UTC] cmb@php.net