unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: Reviving Gnus after suspend/hibernation
Date: Thu, 27 Oct 2011 16:32:31 -0500	[thread overview]
Message-ID: <87ehxym87k.fsf@lifelogs.com> (raw)
In-Reply-To: jwvzkgmta7d.fsf-monnier+emacs@gnu.org

On Thu, 27 Oct 2011 17:12:28 -0400 Stefan Monnier <monnier@iro.umontreal.ca> wrote: 

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

SM> Writing a resume handler would just patch over the problem, because this
SM> problem can also show up without suspend&resume (typically, you're
SM> behind a NAT router, and you leave the connection idle for a while,
SM> after which the NAT router decides to forget about this connection).

SM> Presumably setting the `keepalive' bit on the TCP connection should help, but:
SM> - we should also make sure that C-g works.
SM> - we should time out (hopefully keepalive does it for us) after a while.
SM> - we should make it easy for the user to kill the connection if it is
SM>   hung (e.g. make C-g kill the connection).

You're right, but on suspend&resume we should not have to wait for the
TCP connection to time out.  Let's assume it's closed in that specific
case and set the keepalive for general use.  

Is this just a GnuTLS problem?  Does any of the rest of Emacs have
issues with hung connections?

SM> - we should figure out what other applications (e.g. other MUAs) do.

I think just reopening the connection is reasonable, no?  What else
needs to be figured out?

Ted




  reply	other threads:[~2011-10-27 21:32 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
2011-10-27 21:12         ` Stefan Monnier
2011-10-27 21:32           ` Ted Zlatanov [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ehxym87k.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).