From: Tobias Oberstein <tobias.oberstein@gmail.com>
To: LKML <linux-kernel@vger.kernel.org>
Subject: SO_REUSEPORT and Unix domain sockets
Date: Tue, 27 May 2014 11:55:10 +0200 [thread overview]
Message-ID: <538460FE.8030000@gmail.com> (raw)
Linux kernels >= 3.9 allow sharing of sockets between processes with
in-kernel load-balancing by setting SO_REUSEPORT (eg
http://lwn.net/Articles/542629/)
How can this be used for sockets of type AF_UNIX?
I can only get it working with TCP sockets, not Unix domain sockets.
When using TCP, the incoming clients will get nicely balanced to all
processes listening. With Unix domain sockets, the incoming clients all
get connected only to the last started process.
The test code (Python) I was trying is here:
http://stackoverflow.com/questions/23742368/can-so-reuseport-be-used-on-unix-domain-sockets
Any hints appreciated,
/Tobias
next reply other threads:[~2014-05-27 9:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-27 9:55 Tobias Oberstein [this message]
2014-09-20 1:44 ` SO_REUSEPORT and Unix domain sockets Eduardo Silva
2014-09-21 13:50 ` Tobias Oberstein
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=538460FE.8030000@gmail.com \
--to=tobias.oberstein@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).