From: joakim@verona.se
To: emacs-devel@gnu.org
Subject: Re: Reviving Gnus after suspend/hibernation
Date: Thu, 27 Oct 2011 20:50:20 +0200 [thread overview]
Message-ID: <m362jamfpv.fsf@chopper.vpn.verona.se> (raw)
In-Reply-To: <8762jajn5q.fsf@lifelogs.com> (Ted Zlatanov's message of "Thu, 27 Oct 2011 13:37:53 -0500")
Ted Zlatanov <tzz@lifelogs.com> writes:
> On Thu, 27 Oct 2011 20:14:58 +0200 Eli Zaretskii <eliz@gnu.org> wrote:
>
>>> From: Ted Zlatanov <tzz@lifelogs.com>
>>> Date: Thu, 27 Oct 2011 13:41:43 -0400
>>> Cc: ding@gnus.org
>>>
>>> Asking emacs-devel since the Gnus list didn't have any answers:
>>>
>>> On Mon, 24 Oct 2011 09:23:09 -0400 Ted Zlatanov <tzz@lifelogs.com> wrote:
>>>
> TZ> On Tue, 18 Oct 2011 18:39:11 +0200 ludo@gnu.org (Ludovic Courtès) wrote:
> LC> When Gnus is left plugged or has non-agentized nnimap groups, recovering
> LC> from suspend-to-RAM or hibernation has always been a problem for me:
> LC> sometimes Emacs is frozen upon resume, trying to get data from some IMAP
> LC> stream.
>>> ...
> TZ> (Assuming modern GNU/Linux system is the main focus based on your
> TZ> commands)
>>>
> TZ> Is there a D-BUS signal for this, and can Emacs catch it? If so I could
> TZ> try to close the open connections in that handler.
>>>
> TZ> What happens on a W32 system?
>>>
>>> Any help is appreciated. I don't know anything about these system events.
>
> EZ> What exactly is the question?
>
> Sorry, I cut too much context.
>
> Active Emacs network connections are not always closed properly upon
> resuming from suspend. This is a problem with GnuTLS, which keeps
> waiting for data and hangs Emacs. So I want to write a resume handler
> that will close all the GnuTLS connections.
>
> On Linux I think this is done with D-BUS, but is there a way on W32 as
> well?
For the record I have had this or a similar problem since
forever. (there are bugreports etc.) It doesn't have to be a TLS
connection either.
normally I close the gnus connections manually after resume or network
change. When I forget and Emacs hangs, I use this little script:
,----
| #/bin/sh
| `lsof -n|grep emacs|grep nntp|sed "s/.*TCP\ \\([^:]*\\):.*->\\([^:].*\\):.*/ export a=\\1 export b=\\2/"`
| echo $a $b
| ifconfig lo:1 $a
| ifconfig lo:2 $b
| echo press enter when emacs is alive
| read
| ifconfig lo:1 down
| ifconfig lo:2 down
`----
but I don't know what the equivalent is on windoze.
It would be cool if this could be solved properly. (maybe you are seeing
another problem but it does sound similar)
>
> Thanks
> Ted
>
--
Joakim Verona
next prev parent reply other threads:[~2011-10-27 18:50 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87wrc2qmog.fsf@gnu.org>
[not found] ` <877h3ule0y.fsf@lifelogs.com>
2011-10-27 17:41 ` Reviving Gnus after suspend/hibernation Ted Zlatanov
2011-10-27 18:14 ` Eli Zaretskii
2011-10-27 18:37 ` Ted Zlatanov
2011-10-27 18:48 ` Eli Zaretskii
2011-10-27 19:07 ` Ted Zlatanov
2011-10-27 23:48 ` Richard Stallman
2011-10-28 0:17 ` Ted Zlatanov
2011-10-27 18:50 ` joakim [this message]
2011-10-27 21:12 ` Stefan Monnier
2011-10-27 21:32 ` Ted Zlatanov
2011-10-28 0:33 ` Stefan Monnier
2011-10-28 20:31 ` Ted Zlatanov
2011-10-29 0:50 ` Stefan Monnier
2011-10-29 3:33 ` Jason Rumney
2011-10-29 16:13 ` Stefan Monnier
2011-10-29 18:35 ` Ted Zlatanov
2011-10-29 19:44 ` Stefan Monnier
2011-11-03 20:24 ` Lars Magne Ingebrigtsen
2011-11-03 21:12 ` Stefan Monnier
2011-11-03 21:25 ` Lars Magne Ingebrigtsen
2011-10-29 18:31 ` Ted Zlatanov
2011-10-29 19:07 ` Antoine Levitt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m362jamfpv.fsf@chopper.vpn.verona.se \
--to=joakim@verona.se \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.