Date: Tue, 2 Nov 2010 22:13:08 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sbin/hastd primary.c Message-ID: <201011022213.oA2MDRh3022198@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
pjd 2010-11-02 22:13:08 UTC
FreeBSD src repository
Modified files:
sbin/hastd primary.c
Log:
SVN rev 214692 on 2010-11-02 22:13:08Z by pjd
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
Revision Changes Path
1.39 +57 -40 src/sbin/hastd/primary.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011022213.oA2MDRh3022198>
