Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: ding@gnus.org
Subject: Re: [gnus git]  branch master updated: n0-17-27-g43f8466 =1= nntp.el (nntp-open-connection): Set TCP keepalive option.
Date: Tue, 10 May 2011 00:53:06 +0200	[thread overview]
Message-ID: <m3ei47pju5.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <E1QJYrH-0001ys-1x@quimby.gnus.org>

> +      (when (and (fboundp 'set-network-process-option)
> +                 (eq (process-type process) 'network))
> +        ;; Use TCP-keepalive so that connections that pass through a NAT router
> +        ;; don't hang when left idle.
> +        (set-network-process-option process :keepalive t))

I don't necessarily disagree with this patch, but I'm wondering what the
use case is.

Keepalive is usually useful (on the client side) if you have a protocol
where you're just sitting sleeping on a socket.  If the server dies,
you'll never get a TCP RST, so the keepalive option will ensure you get
that RST after a while.

However, the NNTP protocol isn't like that.  You send a command and you
get a response.  If you send a command to a server, and it doesn't
recognise you because you've changed IP address or whatever, it'll send
you a RST.

So the NNTP protocol doesn't seem like something that would need a
TCP keepalive option.  But I might be misthinking the use case.

(And, besides, if nntp.el needs keepalive, doesn't all network
connections need it?)

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



       reply	other threads:[~2011-05-09 22:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1QJYrH-0001ys-1x@quimby.gnus.org>
2011-05-09 22:53 ` Lars Magne Ingebrigtsen [this message]
2011-05-10  1:01   ` Stefan Monnier
2011-05-10  1:07     ` Stefan Monnier
2011-05-30 20:14       ` Lars Magne Ingebrigtsen
2011-05-30 20:17     ` Lars Magne Ingebrigtsen
2011-05-10  5:30   ` David Engster
2011-05-10 13:46     ` Stefan Monnier
2011-05-10 14:19       ` David Engster
2011-05-11  8:57         ` David Engster
2011-05-11 17:59     ` David Engster
2011-05-10 12:06   ` Greg Troxel
2011-05-10 12:23     ` Antoine Levitt
2011-05-10 13:07       ` Richard Riley

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=m3ei47pju5.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    --cc=ding@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    /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.
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 NNTP newsgroup(s).