Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Emacs 24 Gnus IMAP Keep Alive to Prevent Disconnect?
@ 2013-12-08 20:59 Aaron W. Hsu
  2013-12-09 17:23 ` Dmitrii Kashin
  2013-12-25 23:34 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 6+ messages in thread
From: Aaron W. Hsu @ 2013-12-08 20:59 UTC (permalink / raw)
  To: info-gnus-english

Hey all:

I have noticed that an idle IMAP connection in Gnus on my system has a
tendency to hang without resolution. I have a tls stream with a
logout-timeout set to 1.0. However, this doesn't seem to actually keep
the connection alive or reset the connection when it should. I read in
the GnusNiftyTricks in the EmacsWiki about a means of keeping the IMAP
connection alive, but the notes at the bottom indicate that Emacs 24,
which I am using, has this built in. 

What should I be doing to prevent Gnus from hanging with an IMAP
connection that appears connected but that may have been disconnected?
I'd prefer a transparent reconnection or something like that if
possible. 


-- 
Aaron W. Hsu | arcfide@sacrideo.us | http://www.sacrideo.us
לֵ֤ב חֲכָמִים֙ בְּבֵ֣ית אֵ֔בֶל וְלֵ֥ב כְּסִילִ֖ים בְּבֵ֥ית שִׂמְחָֽה׃
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Emacs 24 Gnus IMAP Keep Alive to Prevent Disconnect?
  2013-12-08 20:59 Emacs 24 Gnus IMAP Keep Alive to Prevent Disconnect? Aaron W. Hsu
@ 2013-12-09 17:23 ` Dmitrii Kashin
  2013-12-25 23:34 ` Lars Ingebrigtsen
  1 sibling, 0 replies; 6+ messages in thread
From: Dmitrii Kashin @ 2013-12-09 17:23 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 729 bytes --]

arcfide@sacrideo.us (Aaron W. Hsu) writes:

> Hey all:
>
> I have noticed that an idle IMAP connection in Gnus on my system has a
> tendency to hang without resolution. I have a tls stream with a
> logout-timeout set to 1.0. However, this doesn't seem to actually keep
> the connection alive or reset the connection when it should. I read in
> the GnusNiftyTricks in the EmacsWiki about a means of keeping the IMAP
> connection alive, but the notes at the bottom indicate that Emacs 24,
> which I am using, has this built in. 

I had had this problem in Emacsen 23.4 and 24.3, but had not solved it
because of not very big experience. I decided to use SSL instead. It
has been working perfectly for all this time.

[-- Attachment #1.2: Type: application/pgp-signature, Size: 835 bytes --]

[-- Attachment #2: Type: text/plain, Size: 162 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Emacs 24 Gnus IMAP Keep Alive to Prevent Disconnect?
  2013-12-08 20:59 Emacs 24 Gnus IMAP Keep Alive to Prevent Disconnect? Aaron W. Hsu
  2013-12-09 17:23 ` Dmitrii Kashin
@ 2013-12-25 23:34 ` Lars Ingebrigtsen
  2013-12-28  8:01   ` Aaron W. Hsu
  1 sibling, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2013-12-25 23:34 UTC (permalink / raw)
  To: info-gnus-english

arcfide@sacrideo.us (Aaron W. Hsu) writes:

> What should I be doing to prevent Gnus from hanging with an IMAP
> connection that appears connected but that may have been disconnected?
> I'd prefer a transparent reconnection or something like that if
> possible. 

Do you have a network connection that changes IP on your machine (or
your router)?  In that case, network connections may hang.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Emacs 24 Gnus IMAP Keep Alive to Prevent Disconnect?
  2013-12-25 23:34 ` Lars Ingebrigtsen
@ 2013-12-28  8:01   ` Aaron W. Hsu
  2014-01-05 10:02     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Aaron W. Hsu @ 2013-12-28  8:01 UTC (permalink / raw)
  To: info-gnus-english

Lars Ingebrigtsen <larsi@gnus.org> writes:

> arcfide@sacrideo.us (Aaron W. Hsu) writes:
>
>> What should I be doing to prevent Gnus from hanging with an IMAP
>> connection that appears connected but that may have been disconnected?
>> I'd prefer a transparent reconnection or something like that if
>> possible. 
>
> Do you have a network connection that changes IP on your machine (or
> your router)?  In that case, network connections may hang.

Not very often, and certainly not on a daily basis. Maybe a monthly
basis, if that. 

-- 
Aaron W. Hsu | arcfide@sacrideo.us | http://www.sacrideo.us
לֵ֤ב חֲכָמִים֙ בְּבֵ֣ית אֵ֔בֶל וְלֵ֥ב כְּסִילִ֖ים בְּבֵ֥ית שִׂמְחָֽה׃
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Emacs 24 Gnus IMAP Keep Alive to Prevent Disconnect?
  2013-12-28  8:01   ` Aaron W. Hsu
@ 2014-01-05 10:02     ` Lars Magne Ingebrigtsen
  2014-01-16 19:50       ` Aaron W. Hsu
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2014-01-05 10:02 UTC (permalink / raw)
  To: info-gnus-english

arcfide@sacrideo.us (Aaron W. Hsu) writes:

> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
>> arcfide@sacrideo.us (Aaron W. Hsu) writes:
>>
>>> What should I be doing to prevent Gnus from hanging with an IMAP
>>> connection that appears connected but that may have been disconnected?
>>> I'd prefer a transparent reconnection or something like that if
>>> possible. 
>>
>> Do you have a network connection that changes IP on your machine (or
>> your router)?  In that case, network connections may hang.
>
> Not very often, and certainly not on a daily basis. Maybe a monthly
> basis, if that. 

Right.  If the server has closed the connection in a normal manner, then
Emacs should detect that, and you shouldn't get any hangs.

Could you try setting `debug-on-quit' and then `C-g' when it hangs?
That may give us more data.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Emacs 24 Gnus IMAP Keep Alive to Prevent Disconnect?
  2014-01-05 10:02     ` Lars Magne Ingebrigtsen
@ 2014-01-16 19:50       ` Aaron W. Hsu
  0 siblings, 0 replies; 6+ messages in thread
From: Aaron W. Hsu @ 2014-01-16 19:50 UTC (permalink / raw)
  To: info-gnus-english

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> arcfide@sacrideo.us (Aaron W. Hsu) writes:
>
>> Lars Ingebrigtsen <larsi@gnus.org> writes:
>>
>>> arcfide@sacrideo.us (Aaron W. Hsu) writes:
>>>
>>>> What should I be doing to prevent Gnus from hanging with an IMAP
>>>> connection that appears connected but that may have been disconnected?
>>>> I'd prefer a transparent reconnection or something like that if
>>>> possible. 
>>>
>>> Do you have a network connection that changes IP on your machine (or
>>> your router)?  In that case, network connections may hang.
>>
>> Not very often, and certainly not on a daily basis. Maybe a monthly
>> basis, if that. 
>
> Right.  If the server has closed the connection in a normal manner, then
> Emacs should detect that, and you shouldn't get any hangs.
>
> Could you try setting `debug-on-quit' and then `C-g' when it hangs?
> That may give us more data.

I'll try to do this soon. I am actually using two news servers and one
IMAP server: I do not know which is causing the problems. Thank you for
the debugging information.

-- 
Aaron W. Hsu | arcfide@sacrideo.us | http://www.sacrideo.us
לֵ֤ב חֲכָמִים֙ בְּבֵ֣ית אֵ֔בֶל וְלֵ֥ב כְּסִילִ֖ים בְּבֵ֥ית שִׂמְחָֽה׃
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-01-16 19:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-08 20:59 Emacs 24 Gnus IMAP Keep Alive to Prevent Disconnect? Aaron W. Hsu
2013-12-09 17:23 ` Dmitrii Kashin
2013-12-25 23:34 ` Lars Ingebrigtsen
2013-12-28  8:01   ` Aaron W. Hsu
2014-01-05 10:02     ` Lars Magne Ingebrigtsen
2014-01-16 19:50       ` Aaron W. Hsu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).