git: cluster - Improve hammer2 connect directive, add /etc/hammer2/autoconn
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Dec 4 14:32:21 PST 2012
commit 2892d2116e7e99189a6ef8b1f8147f1bd18ee48b
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Tue Dec 4 14:23:22 2012 -0800
cluster - Improve hammer2 connect directive, add /etc/hammer2/autoconn
* Improve the hammer2 connect directive, fixing a socket descriptor reuse
race.
* Monitor the file /etc/hammer2/autoconn which contains a list of hosts
the hammer2 service demon whould automatically maintain connections to.
* Adjust the dmsg_master_service() API to also allow an alternative
signalling descriptor and callback to be specified. This simplifies
forced connection terminations.
* Fix descriptor leak in dmsg_master_service() on closure.
Summary of changes:
lib/libdmsg/dmsg.h | 2 +
lib/libdmsg/msg.c | 18 +++-
lib/libdmsg/msg_lnk.c | 67 +++++++++----
lib/libdmsg/service.c | 15 ++-
sbin/hammer2/cmd_service.c | 232 ++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 301 insertions(+), 33 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2892d2116e7e99189a6ef8b1f8147f1bd18ee48b
--
DragonFly BSD source repository
More information about the Commits
mailing list