diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-09-17 22:05:09 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-09-21 01:01:25 +0200 |
commit | 612b9e2102e1907709dde325f91d5fdf70ed2534 (patch) | |
tree | 007d69ddd0998924ce81493b2a49a9076d8f020b /interimap | |
parent | 683a3973a32ee3618824d08ed7ee6cfc7ee9ab02 (diff) |
Use TCP keepalive to detect dead peers.
Diffstat (limited to 'interimap')
-rwxr-xr-x | interimap | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -248,6 +248,7 @@ foreach my $name (qw/local remote/) { $config{name} = $name; $config{'logger-fd'} = $LOGGER_FD if defined $LOGGER_FD; $config{'compress'} //= ($name eq 'local' ? 0 : 1); + $config{keepalive} = 1 if $CONFIG{watch} and $config{type} ne 'tunnel'; $IMAP->{$name} = { client => Net::IMAP::InterIMAP::->new(%config) }; my $client = $IMAP->{$name}->{client}; |