1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/sbin/hastd
Pawel Jakub Dawidek 448efa9421 Send packets to remote node only via the send thread to avoid possible
races - in this case a keepalive packet was send from wrong thread which
lead to connection dropping, because of corrupted packet.

Fix it by sending keepalive packets directly from the send thread.
As a bonus we now send keepalive packets only when connection is idle.

Submitted by:	Mikolaj Golub <to.my.trociny@gmail.com>
MFC after:	3 days
2010-11-02 22:13:08 +00:00
..
activemap.c
activemap.h
control.c We close the event socketpair early in the mainloop to prevent spaming with 2010-10-08 15:02:15 +00:00
control.h Fix descriptor leaks: when child exits, we have to close control and event 2010-09-22 18:57:06 +00:00
ebuf.c
ebuf.h
event.c Forgot to add event.c and event.h in r212038. 2010-08-31 09:38:43 +00:00
event.h Forgot to add event.c and event.h in r212038. 2010-08-31 09:38:43 +00:00
hast_proto.c Constify arguments we can constify. 2010-08-30 22:26:42 +00:00
hast_proto.h Constify arguments we can constify. 2010-08-30 22:26:42 +00:00
hast.conf.5 Execute hook when connection between the nodes is established or lost. 2010-08-30 00:31:30 +00:00
hast.h Because it is very hard to make fork(2) from threaded process safe (we are 2010-08-30 23:26:10 +00:00
hastd.8
hastd.c Load geom_gate.ko module after parsing arguments. 2010-10-24 15:38:58 +00:00
hastd.h Switch to sigprocmask(2) API also in the main process and secondary process. 2010-09-22 19:08:11 +00:00
hooks.c Use closefrom(2) instead of close(2) in a loop. 2010-10-20 21:10:01 +00:00
hooks.h hook_check() is now only used to report about long-running hooks, so the 2010-10-04 21:43:06 +00:00
Makefile Because it is very hard to make fork(2) from threaded process safe (we are 2010-08-30 23:26:10 +00:00
metadata.c
metadata.h
nv.c Implement nv_exists() function that returns true if argument of the given 2010-10-24 17:24:08 +00:00
nv.h Implement nv_exists() function that returns true if argument of the given 2010-10-24 17:24:08 +00:00
parse.y Plug memory leaks. 2010-10-24 15:41:23 +00:00
pjdlog.c Use one fprintf() instead of two. 2010-10-16 22:50:12 +00:00
pjdlog.h Problem with assertion is that it logs on stderr. Add two macros: 2010-08-05 18:26:38 +00:00
primary.c Send packets to remote node only via the send thread to avoid possible 2010-11-02 22:13:08 +00:00
proto_common.c For some setups sending data in 128kB chunks makes communication very slow. No 2010-08-18 12:09:27 +00:00
proto_impl.h
proto_socketpair.c When someone gives NULL as data, assume this is because he want to declare 2010-08-30 23:16:45 +00:00
proto_tcp4.c Make comment more readable. 2010-08-27 13:54:17 +00:00
proto_uds.c Assert that various buffers we are large enough. 2010-08-05 18:27:41 +00:00
proto.c Constify arguments we can constify. 2010-08-30 22:26:42 +00:00
proto.h Constify arguments we can constify. 2010-08-30 22:26:42 +00:00
rangelock.c
rangelock.h
secondary.c Before this change on first connect between primary and secondary we 2010-10-24 17:28:25 +00:00
subr.c
subr.h
synch.h Plug memory leaks. 2010-10-24 15:41:23 +00:00
token.l Allow to execute specified program on various HAST events. 2010-08-27 15:16:52 +00:00