unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Bob Rogers <rogers-emacs@rgrjr.dyndns.org>
Cc: emacs-devel@gnu.org, angeli@iwi.uni-sb.de, "Kim F. Storm" <storm@cua.dk>
Subject: Re: gnus makes emacs lose response
Date: Wed, 23 Aug 2006 23:17:09 -0400	[thread overview]
Message-ID: <17645.6709.53699.324551@rgrjr.dyndns.org> (raw)
In-Reply-To: <E1GFtz0-0006XP-K4@fencepost.gnu.org>

   From: Richard Stallman <rms@gnu.org>
   Date: Wed, 23 Aug 2006 10:45:30 -0400

       > That means after reconnecting to the internet under Windows a new
       > process is started which has no problem communicating to the server
       > while on GNU/Linux the old one is reused which obviously cannot cope
       > with the new internet connection.

       . . .

       > I am not sure what the right course of action on GNU/Linux would be to
       > remedy the problem.  Should programs like openssl die when the
       > internet connection is being closed?  Or renegotiate a connection?

   I don't know whether openssl can keep working when a phone connection
   drops and is reestablished, but I have seen scp connections keep
   working when I removed and then reinserted a Wifi card.  These cases
   are not the same but they are analogous; if the openssl/phone case
   does not work now, it ought to work.

The problem is fundamental to dialups (and my apologies if this is old
hat, and by "it ought to work" you really meant "Gnus" and not
"openssl").

    For a wireless card or cable modem, the DHCP server remembers your
hardware address, which it uses to give you the IP address you had
before, so established TCP connections resume working as soon as the
interface comes back up.  When you redial, the computer attached to the
modem bank has no clue who are (and might even be a different computer
than before), so you usually get a different IP address, making TCP
connections established with the old IP address unusable.  Either way,
OpenSSL probably isn't even aware of all this commotion in the lower
layers of the networking stack.

   So you might consider this a bug in GNU/Linux that it doesn't close
open connections for old addresses.  However, it may not be possible to
decide that an old address is truly and forevermore gone, and so (I am
guessing) they figured that it is more robust to let higher-level
connection timeout mechanisms come into play.  (It may even be specified
that way, but I don't know the relevant RFCs to check.)  By that
interpretation, the observed difference in behavior is really a Windows
bug.  (And it wouldn't be the first time MS chose user convenience over
robustness, now, would it?  ;-)

       I see similar problems connection to one of the news servers at my ISP.
       I just interrupt Gnus, and make anoter refresh -- I guess Gnus could
       just as well do this automatically if there is no response from the
       server it used last time.

   I don't entirely understand that proposal . . .
   If openssl could resume its connection when you reconnect the phone line,
   would that make this proposal unnecessary?  Would that make this proposal
   undesirable or incorrect?

Would it be possible for Gnus to request a timeout when invoking
openssl?  I'm afraid I don't know enough about either to make a more
detailed suggestion, let alone whether this approach could work.  (And
http://www.openssl.org/docs/apps/s_client.html doesn't show any
timeout-related option, which is not hopeful.)

   If not, then restarting the connection after a suitable timeout is
probably the best available technology.

					-- Bob Rogers
					   [who sometimes pretends to be
					   a network engineer, often
					   with success.]
					   http://rgrjr.dyndns.org/

  parent reply	other threads:[~2006-08-24  3:17 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m2lkuuynpf.fsf@sl392.st-edmunds.cam.ac.uk>
     [not found] ` <m24q18rize.fsf@sl392.st-edmunds.cam.ac.uk>
2006-04-05  8:47   ` gnus makes emacs lose response Kim F. Storm
2006-04-05 17:55     ` Leon
2006-04-06  9:08       ` Kim F. Storm
2006-04-06 21:15         ` Leon
2006-04-07  8:13           ` Kim F. Storm
2006-04-07 13:25             ` Leon
2006-04-07 20:58         ` Ralf Angeli
2006-04-09  1:17           ` Leon
2006-04-17 20:35           ` Ralf Angeli
2006-04-18  1:46             ` Leon
2006-04-19 20:18               ` Ralf Angeli
2006-04-20  1:19                 ` Leon
2006-04-19 20:18             ` Ralf Angeli
2006-04-19 20:51               ` Stefan Monnier
2006-04-19 21:13                 ` Ralf Angeli
2006-04-20 18:05               ` Gregory Novak
2006-04-24  0:41                 ` Kim F. Storm
2006-08-22 11:44               ` Kim F. Storm
2006-08-23 14:45                 ` Richard Stallman
2006-08-23 15:00                   ` Kim F. Storm
2006-08-25  7:43                     ` Richard Stallman
2006-08-25  8:15                       ` Kim F. Storm
2006-08-26 10:08                         ` Richard Stallman
2006-08-26 21:32                           ` Kim F. Storm
2006-08-25  8:56                       ` Jason Rumney
2006-08-23 20:51                   ` Stefan Monnier
2006-08-24  3:17                   ` Bob Rogers [this message]
2006-08-24  7:51                     ` Kim F. Storm
2006-08-25  1:01                       ` Bob Rogers
2006-08-25 20:23                       ` Richard Stallman
2006-08-25  7:44                     ` Richard Stallman
2006-09-04  8:41 Kim F. Storm
2006-09-05 21:18 ` Chong Yidong
2006-09-05 21:21   ` Stefan Monnier
2006-09-07 20:43     ` Chong Yidong
2006-09-08 11:56       ` Richard Stallman
2006-09-06 19:06   ` Richard Stallman
2006-09-07 14:37 ` Chong Yidong
2006-09-22 20:04 ` Chong Yidong
2006-09-25  0:39   ` Stefan Monnier
2006-09-25 15:22     ` Chong Yidong
  -- strict thread matches above, loose matches on Subject: below --
2006-09-09 22:33 Kim F. Storm
2006-09-10  4:10 ` Stefan Monnier
2006-09-16 20:22   ` Chong Yidong
2006-09-18 14:40   ` Chong Yidong
2006-09-18 14:53     ` Chong Yidong
2006-09-19 10:45       ` Stefan Monnier
2006-09-19 15:02         ` Chong Yidong
2006-09-22 19:12           ` Stefan Monnier
2006-09-23 18:01             ` Richard Stallman
2006-09-23  3:34         ` Richard Stallman
2006-09-23 15:02           ` Stefan Monnier
2006-09-18 14:55     ` Stefan Monnier
2006-09-23 18:18 Chong Yidong
2006-09-23 23:42 ` Luc Teirlinck
2006-09-26 17:26 ` Leo
2006-09-26 18:08   ` Chong Yidong
2006-09-26 19:20     ` Leo

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=17645.6709.53699.324551@rgrjr.dyndns.org \
    --to=rogers-emacs@rgrjr.dyndns.org \
    --cc=angeli@iwi.uni-sb.de \
    --cc=emacs-devel@gnu.org \
    --cc=storm@cua.dk \
    /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).