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
..
2010-06-14 21:44:58 +00:00
2010-06-14 21:25:20 +00:00
2010-10-24 15:41:23 +00:00
2010-10-16 22:50:12 +00:00
2010-08-27 13:54:17 +00:00
2010-08-30 22:26:42 +00:00
2010-08-30 22:26:42 +00:00
2010-10-24 15:41:23 +00:00