[Xapian-tickets] [Xapian] #546: xapian-replicate reads from a socket without using timeouts
Xapian
nobody at xapian.org
Mon Mar 30 01:46:02 BST 2015
#546: xapian-replicate reads from a socket without using timeouts
-------------------------+-----------------------------
Reporter: nkvoll | Owner: olly
Type: defect | Status: assigned
Priority: normal | Milestone: 1.3.3
Component: Replication | Version:
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: All
-------------------------+-----------------------------
Comment (by olly):
We could also enable `SO_KEEPALIVE` which means the connection won't hang
around forever if the other end goes away, though it could take a couple
of hours to notice: http://www.unixguide.net/network/socketfaq/2.8.shtml
It is at least specified by POSIX:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_10_16
If we enable that and use socket timeouts where supported, then the
original issue of having to manually restart it would be gone, though you
might end up with a slave lagging until the keepalive packet is next sent.
--
Ticket URL: <http://trac.xapian.org/ticket/546#comment:13>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list