[cc'd netdev] On Thu, Feb 28, 2008 at 12:15:06PM -0600, Nebojsa Miljanovic wrote:I've been encountering the need for SO_REUSEPORT as implemented on some BSD for instance. It allows any process to explicitly permit another one to bind to the same IP:port provided that it also sets its socket with SO_REUSEPORT. This is a real requirement when you need to restart a service without any service disruption. In the end, I've written a trivial patch for 2.4 (but most likely 2.6 would use nearly the same one). I noticed that the conflict detection logic already distinguished between 3 cases: sk->reuse==0, sk->reuse==1, sk->reuse >1. sk->reuse was set to 1 with SO_REUSEADDR. I simply had to make SO_REUSEPORT do sk->reuse |= 2 to get everything working as expected. I don't know yet if it is as easy to do in 2.6, but if there is a possible acceptance of including this useful feature into mainline, I can try to work a patch (possibly cleaner than my existing one for 2.4). Regards, Willy --
| Arnd Bergmann | SCHED_IDLE documentation |
| david | Re: limits on raid |
| Jan Engelhardt | Re: [PATCH] CodingStyle: multiple updates |
| Ingo Molnar | Re: Rescheduling interrupts |
git: | |
| Russ Brown | git-svn: Branching clarifications |
| Sam Song | Fwd: [OT] Re: Git via a proxy server? |
| Junio C Hamano | Re: More precise tag following |
| Pierre Habouzit | Re: People unaware of the importance of "git gc"? |
| Michael | Virtual interface |
| Stijn | Re: libiconv problem |
| Stefan Beke | mail dovecot: pipe() failed: Too many open files |
| Amaury De Ganseman | "ping: sendto: No buffer space available" when using bittorrent or another p2p |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Darren Senn | Re: Elm |
| Seung-Chul Woo | Is it possible to mount GNU HURD file system as DOS in SLS? |
| David Willmore | Re: Intel, the Pentium and Linux |
