1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-23 20:59:10 +03:00
Files
samba-mirror/source3/lib
Volker Lendecke 6dcf2c7eab lib: Add unix_msg
This is a messaging layer based on unix domain datagram sockets.

Sending to an idle socket is just one single nonblocking sendmsg call. If the
recv queue is full, we start a background thread to do a blocking call. The
source4 based imessaging uses a polling fallback. In a situation where
thousands of senders beat one single blocked socket, this will generate load on
the system due to the constant polling. This does not happen with a threaded
blocking send call.

The threaded approach has another advantage: We save become_root() calls on the
retries. The access checks are done when the blocking socket is connected, the
threaded blocking send call does not check permissions anymore.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2014-04-23 22:33:08 +02:00
..
2014-04-23 22:33:08 +02:00
2014-04-23 22:33:08 +02:00
2012-03-24 17:11:11 +01:00
2013-02-19 17:31:32 +01:00
2014-02-20 22:58:58 +01:00
2013-11-11 21:04:09 +01:00
2013-06-25 12:54:00 +02:00
2013-12-05 03:06:10 +01:00
2012-09-18 14:30:25 +02:00
2012-04-17 10:21:02 +02:00
2012-04-17 10:21:02 +02:00
2012-07-18 15:54:20 -07:00
2012-07-18 15:54:20 -07:00
2012-09-19 01:16:25 +02:00
2012-05-15 18:24:10 +02:00
2014-04-13 16:55:05 +02:00
2012-04-19 19:13:45 +02:00