From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: emacs-devel@gnu.org
Subject: Re: Determining whether a TCP connection is up
Date: Mon, 05 Aug 2013 19:55:55 +0200 [thread overview]
Message-ID: <m37gg0hvis.fsf@stories.gnus.org> (raw)
In-Reply-To: <878v0g1l55.fsf@dex.adm.naquadah.org> (Julien Danjou's message of "Mon, 05 Aug 2013 12:34:30 +0200")
Julien Danjou <julien@danjou.info> writes:
> It would help a lot:
> - connections would be stuck in the *background*, avoiding getting your
> Emacs frozen;
Not really. Network chatter is issued when users want something to
happen, like entering a group and the like.
> - connections will eventually time out (the kernel does have a TCP
> timeout), and you will be able to reschedule the operation since you
> used a queue.
Heh heh. After waiting half an hour?
> Also, sqending regular NOOP command should triggers early detection of
> IP changes. If I'm not mistaken, if the kernel thinks you have a TCP
> session established, but your NATed public IP address changed, the
> remote server is going to send you a RST or something like that as soon
> as it received something, and the kernel will consider the connection as
> no more valid and will close it.
Nope. This no longer happens in modern network setups. Like my
original article said, it's common for people to run firewalls that drop
packages that don't belong to TCP sessions. So you get no RST.
--
(domestic pets only, the antidote for overdose, milk.)
No Gnus T-Shirt for sale: http://ingebrigtsen.no/no.php
and http://lars.ingebrigtsen.no/2013/08/twenty-years-of-september.html
next prev parent reply other threads:[~2013-08-05 17:55 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-03 12:30 Determining whether a TCP connection is up Lars Magne Ingebrigtsen
2013-08-03 14:09 ` Paul Eggert
2013-08-03 16:01 ` Julien Danjou
2013-08-05 2:12 ` Lars Magne Ingebrigtsen
2013-08-05 2:33 ` chad
2013-08-05 2:37 ` Lars Magne Ingebrigtsen
2013-08-05 10:34 ` Julien Danjou
2013-08-05 14:40 ` Stefan Monnier
2013-08-05 15:23 ` Thierry Volpiatto
2013-08-05 15:51 ` Julien Danjou
2013-08-05 17:55 ` Lars Magne Ingebrigtsen [this message]
2013-08-06 8:51 ` Julien Danjou
2013-08-06 9:59 ` joakim
2013-08-06 13:36 ` Lars Magne Ingebrigtsen
2013-08-06 21:32 ` Stefan Monnier
2013-08-12 17:09 ` Lars Magne Ingebrigtsen
2013-08-13 1:52 ` Stefan Monnier
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=m37gg0hvis.fsf@stories.gnus.org \
--to=larsi@gnus.org \
--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.