[sr-dev] [kamailio/kamailio] core: enable reuse of tcp sockets (#1024)
Daniel-Constantin Mierla
notifications at github.com
Thu Mar 16 11:15:19 CET 2017
I think ifdef can be used to check if SO_REUSEPORT is defined, on macos:
```
/usr/include/sys/socket.h:136:#define SO_REUSEPORT 0x0200 /* allow local address & port reuse */
```
On Linux:
```
/usr/include/asm-generic/socket.h:25:#define SO_REUSEPORT 15
```
So it appears it is a define when available.
The two use cases you listed are also important, I haven't thought of them, so I think that if we can get it enabled at compile time based on availability (can be a follow up commit), the PR can be merged.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1024#issuecomment-287013367
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20170316/c6a6ee6b/attachment.html>
More information about the sr-dev
mailing list