[Evolution] 1.5 FAQ answer: Hang while pinging imap server

Not Zed notzed@ximian.com
Thu, 06 May 2004 09:38:28 +0800


--=-IMqk4WNNCdqjCj3OAafx
Content-Type: multipart/alternative; boundary="=-4HHGhRkKuVFbJofaXY/x"


--=-4HHGhRkKuVFbJofaXY/x
Content-Type: text/plain
Content-Transfer-Encoding: 7bit


This applies to 1.5 more than 1.4, but some of it may apply there.  1.4
has some bugs that mean you get a hard hang instead of just a timeout
hang.

Q: I keep getting a hang while "pinging IMAP server".

A: In 1.4.x, this may cause a hard lockup.  You need to quit evolution
and restart.

In 1.5.x this will timeout when the underlying operating system times
out.  When running a Linux kernel this is about 1-2 hours; so not very
practical.  You can hit the "Cancel" button and then Send/Receive to
reconnect the session as a workaround.

>From 1.5.9 onwards, we now set TCP_KEEPALIVE on the socket, and also
provide an application defined timeout.  The timeout is 4 minutes,
although the TCP_KEEPALIVE should keep the connection alive whilst idle
and should only timeout if it has really gone down.  When keepalive is
used however, the default idle time before it kicks in is 2 hours under
Linux - which wont fix the problem since we're never idle more than 10
minutes at a time anyway by default.

To change the idle time before it kicks in on Linux (as root):

# echo 60 > /proc/sys/net/ipv4/tcp_keepalive_time 
#

This will cause the keepalive mechamism to kick in after 60 seconds.
Keepalive isn't without cost - extra network overhead, but should fix
this specific problem if you suffer from it.

How to make this change permanent depends on your distribution.



Michael Zucchi
<notzed@ximian.com>

Ximian Evolution and
Free Software Developer


Novell, Inc.

--=-4HHGhRkKuVFbJofaXY/x
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.1.13">
</HEAD>
<BODY>
<BR>
This applies to 1.5 more than 1.4, but some of it may apply there.&nbsp; 1.4 has some bugs that mean you get a hard hang instead of just a timeout hang.<BR>
<BR>
Q: I keep getting a hang while &quot;pinging IMAP server&quot;.<BR>
<BR>
A: In 1.4.x, this may cause a hard lockup.&nbsp; You need to quit evolution and restart.<BR>
<BR>
In 1.5.x this will timeout when the underlying operating system times out.&nbsp; When running a Linux kernel this is about 1-2 hours; so not very practical.&nbsp; You can hit the &quot;Cancel&quot; button and then Send/Receive to reconnect the session as a workaround.<BR>
<BR>
>From 1.5.9 onwards, we now set TCP_KEEPALIVE on the socket, and also provide an application defined timeout.&nbsp; The timeout is 4 minutes, although the TCP_KEEPALIVE should keep the connection alive whilst idle and should only timeout if it has really gone down.&nbsp; When keepalive is used however, the default idle time before it kicks in is 2 hours under Linux - which wont fix the problem since we're never idle more than 10 minutes at a time anyway by default.<BR>
<BR>
To change the idle time before it kicks in on Linux (as root):
<PRE>
# echo 60 &gt; /proc/sys/net/ipv4/tcp_keepalive_time 
#
</PRE>
This will cause the keepalive mechamism to kick in after 60 seconds.&nbsp; Keepalive isn't without cost - extra network overhead, but should fix this specific problem if you suffer from it.<BR>
<BR>
How to make this change permanent depends on your distribution.<BR>
<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<TABLE BGCOLOR="#eb0000" CELLSPACING="6" CELLPADDING="6" WIDTH="100%">
<TR>
<TD BGCOLOR="#ffffff">
<IMG SRC="cid:1083806433.1727.0.camel@localhost.localdomain" WIDTH="48" HEIGHT="48" ALIGN="top" ALT="" BORDER="0">
</TD>
<TD BGCOLOR="#ffffff" WIDTH="100%">
<B>Michael Zucchi</B> &lt;<A HREF="mailto:notzed@ximian.com">notzed@ximian.com</A>&gt;<BR>
<BR>
<I><A HREF="http://codeblogs.ximian.com/blogs/evolution/">Ximian Evolution</A> and <A HREF="http://www.gnu.org/philosophy/free-sw.html">Free Software</A> Developer</I>
</TD>
<TD BGCOLOR="#ffffff" NOWRAP>
<BR>
<BR>
<B><A HREF="http://www.novell.com/">Novell, Inc.</A></B>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>

--=-4HHGhRkKuVFbJofaXY/x--

--=-IMqk4WNNCdqjCj3OAafx
Content-ID: <1083806433.1727.0.camel@localhost.localdomain>
Content-Disposition: attachment; filename=zed-48.small.jpg
Content-Type: image/jpeg; name=zed-48.small.jpg
Content-Transfer-Encoding: base64

/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4p
LSwzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUk//2wBDAQ4ODhMREyYVFSZPNS01T09PT09P
T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0//wAARCAAwADADASIA
AhEBAxEB/8QAGQAAAwEBAQAAAAAAAAAAAAAAAwQFAgYB/8QALhAAAgEDAgUEAQIHAAAAAAAAAQID
BBEhABIFEzFBURQigZEGYXE0UmJyobHx/8QAFwEBAQEBAAAAAAAAAAAAAAAABAMCAf/EAB0RAAID
AQEAAwAAAAAAAAAAAAABAgMREjEiMkH/2gAMAwEAAhEDEQA/AK8sEEq35nLaP3e1cW/m8kfdtAfh
824L7I1YFrnaRt8+L40U1ECxiGjLzSCocRYuQhubW7jIxrcFZRzU7q3sh3e8deWvX67/AKX0Xegi
TixevoZdxjhnkk2xBj2Z7DIA74Gs+kgpoaamPLllqE5yPuO4i1+nix7+NS3qatikPNZa+idmjLGx
YE+7r16DHgnTEtRWTVIraiknUrE42mJvYTY/IyfjT66YZjNzkzSSRTrEYTuz0tbpg6oV1V62op5G
3QhV9yn+7t8DXPDiZlaepq0AYIBGEFtuRc2/WwH7aroXho98jNG5RVa4wDYNbzqNsefqdcnmM0J0
pp1kKyRywsdpU46EX/19aT4ioWgmanATG0Mpvcd89750arjMg2L1DfQtnSixTMW5hO0ZBZsEg5t5
xodU+8fhit7jZz4ChQWS99U1lC0H8RNZx74xK2DkAG48ePOtU0UUsQLC6kki/wC+jqtMpeLapjYg
XJyNLcxyr1EUH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