unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Jason Rumney <jasonr@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Reviving Gnus after suspend/hibernation
Date: Sat, 29 Oct 2011 12:13:04 -0400	[thread overview]
Message-ID: <jwv8vo3rdgy.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87mxcksc87.fsf@gnu.org> (Jason Rumney's message of "Sat, 29 Oct 2011 11:33:44 +0800")

>> The Linux kernel definitely does not (and barring a NAT router, or
>> a resume with a different IP, or attempted communication on the link
>> while you're sleeping, the TCP connection will be faithfully waiting
>> for us when we resume).
> The other end will close it after a timeout.  Usually 5 minutes.

I can assure you that I've seen TCP connections without any packet
exchanged for a lot more than 5 minutes.  And indeed most NAT routers
wait longer than 5 minutes before considering a TCP connection as dead.

The timeout you're talking about only exists if the connection uses the
`tcp keepalive' feature (and yes, we want to use the tcp keepalive on
those connections, and I added code for that).

> But this isn't the problem I've experienced with Gnus after
> suspend/resume.  Gnus apparently knows the socket is closed, as it
> very quickly reports the connection failure and starts working in
> offline mode.  What is missing is the ability to automatically reconnect
> and continue, without going back to the Groups buffer and pressing M-g
> (which inhibits the offline mode, as opposed to g, which doesn't).

That's another issue ... ah yes: bug#9244


        Stefan



  reply	other threads:[~2011-10-29 16:13 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
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 [this message]
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=jwv8vo3rdgy.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=jasonr@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).