Gnus development mailing list
 help / color / mirror / Atom feed
* nnimap gets confused after hardware suspend/resume
@ 2011-04-10 18:16 Antoine Levitt
  2011-04-10 20:21 ` Tassilo Horn
  2011-04-12 15:48 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: Antoine Levitt @ 2011-04-10 18:16 UTC (permalink / raw)
  To: ding

(note: this is about hardware suspend/resume, not about the
gnus-group-suspend)

Sometimes, after a suspend and resume, nnimap will lose its connection,
and fail with

Opening nnimap server on Mail...failed: * LIST (%HasNoChildren) "."
"some_mail_group"

Unable to contact server Mail: * LIST (%HasNoChildren) "."
"some_mail_group"

I'm not sure where to look to debug this further, but I'd be happy to
provide more information if needed.

Note that this is with a local imap server, run with

(setq gnus-select-method '(nnimap "Mail" (nnimap-stream shell)))
(setq imap-shell-program "/usr/sbin/dovecot --exec-mail imap")

so that the problem isn't linked with a faulty connection.

I'm not 100% sure what triggers it, and it's hard to debug. It only
seems to happen when I suspend for extended periods of time though
(typically, when I suspend at night and resume the morning after.)




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

* Re: nnimap gets confused after hardware suspend/resume
  2011-04-10 18:16 nnimap gets confused after hardware suspend/resume Antoine Levitt
@ 2011-04-10 20:21 ` Tassilo Horn
  2011-04-12 15:48 ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 5+ messages in thread
From: Tassilo Horn @ 2011-04-10 20:21 UTC (permalink / raw)
  To: Antoine Levitt; +Cc: ding

Antoine Levitt <antoine.levitt@gmail.com> writes:

Hi Antoine,

> Sometimes, after a suspend and resume, nnimap will lose its
> connection, and fail with
>
> [...]
>
> I'm not 100% sure what triggers it, and it's hard to debug. It only
> seems to happen when I suspend for extended periods of time though
> (typically, when I suspend at night and resume the morning after.)

I cannot help you, but now that you've started a thread about that, I
cry on your shoulder.  When I suspend my computer for a sufficiently
long time and wake it up again, I sometimes see these Gnus/Emacs
behaviors:

  a) Some connections broken, but I can re-open them in the server
     buffer.  After doing so, often my Gmane groups show up completely
     unread with thousands of unread messages.  After restarting
     Emacs/Gnus, all is ok again.

  b) I see the that Gnus is fetching news (probably it was doing so
     while I suspended), and Emacs is completely locked up.  C-g
     repeatedly doesn't help, so that I have to kill it.

Bye,
Tassilo
-- 
Sent from my Emacs



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

* Re: nnimap gets confused after hardware suspend/resume
  2011-04-10 18:16 nnimap gets confused after hardware suspend/resume Antoine Levitt
  2011-04-10 20:21 ` Tassilo Horn
@ 2011-04-12 15:48 ` Lars Magne Ingebrigtsen
  2011-04-12 17:35   ` Antoine Levitt
  1 sibling, 1 reply; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-04-12 15:48 UTC (permalink / raw)
  To: ding

Antoine Levitt <antoine.levitt@gmail.com> writes:

> I'm not sure where to look to debug this further, but I'd be happy to
> provide more information if needed.

I'm not sure how to debug this, either.

I've tried to reproduce various kinds of network failures, mostly by
switching off gnutls support, and killing the external gnutls-cli
program.  But whatever I do, Gnus just reconnects.

Does anybody have a convenient way to reproduce convincing network
failures?

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




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

* Re: nnimap gets confused after hardware suspend/resume
  2011-04-12 15:48 ` Lars Magne Ingebrigtsen
@ 2011-04-12 17:35   ` Antoine Levitt
  2011-04-12 17:44     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Antoine Levitt @ 2011-04-12 17:35 UTC (permalink / raw)
  To: ding

12/04/11 17:48, Lars Magne Ingebrigtsen
> Antoine Levitt <antoine.levitt@gmail.com> writes:
>
>> I'm not sure where to look to debug this further, but I'd be happy to
>> provide more information if needed.
>
> I'm not sure how to debug this, either.
>
> I've tried to reproduce various kinds of network failures, mostly by
> switching off gnutls support, and killing the external gnutls-cli
> program.  But whatever I do, Gnus just reconnects.
>
> Does anybody have a convenient way to reproduce convincing network
> failures?

Apparently, http://monkey.org/~dugsong/dsniff/ has a "tcpkill" utility
that can kill TCP connections (although probably not simulate timeouts
and the like) as well as a variety of programs to do nasty things to
sockets. Might be worth a try.

Although, of course, nothing ever surpasses in evilness a simple wifi
that randomly drops connections. :)




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

* Re: nnimap gets confused after hardware suspend/resume
  2011-04-12 17:35   ` Antoine Levitt
@ 2011-04-12 17:44     ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-04-12 17:44 UTC (permalink / raw)
  To: ding

Antoine Levitt <antoine.levitt@gmail.com> writes:

> Apparently, http://monkey.org/~dugsong/dsniff/ has a "tcpkill" utility
> that can kill TCP connections (although probably not simulate timeouts
> and the like) as well as a variety of programs to do nasty things to
> sockets. Might be worth a try.

Thanks; I'll have a look.

> Although, of course, nothing ever surpasses in evilness a simple wifi
> that randomly drops connections. :)

Hehe.  True.  Perhaps I should just try debugging from my laptop...

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




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

end of thread, other threads:[~2011-04-12 17:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-10 18:16 nnimap gets confused after hardware suspend/resume Antoine Levitt
2011-04-10 20:21 ` Tassilo Horn
2011-04-12 15:48 ` Lars Magne Ingebrigtsen
2011-04-12 17:35   ` Antoine Levitt
2011-04-12 17:44     ` Lars Magne Ingebrigtsen

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).