all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: network process timeouts
Date: Thu, 22 Sep 2016 08:22:32 -0400	[thread overview]
Message-ID: <87wpi4azuf.fsf@lifelogs.com> (raw)

This came up as a Gnus question. I don't think Emacs today supports
connection timeouts.

Once the network connection is attempted, the control passes down to the
networking layer, which could be GnuTLS. So the timeout parameter could
be set with gnutls_handshake_set_timeout() (for which we'll need to
modify gnutls.c) or with set_socket_option(SO_RCVTIMEO/SO_SNDTIMEO) in
process.c. At the Emacs Lisp level, it would be a new parameter for
`make-network-process'.

The good news is that all packages, not just Gnus, would benefit from
that. So I think it's a good platform improvement.

If I've missed existing functionality to do network timeouts, please let
me know.

Thanks
Ted




             reply	other threads:[~2016-09-22 12:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-22 12:22 Ted Zlatanov [this message]
2016-09-22 12:54 ` network process timeouts Lars Ingebrigtsen
2016-09-22 19:24   ` Ted Zlatanov
2016-09-22 21:51     ` Lars Ingebrigtsen
2016-09-23 13:03       ` Ted Zlatanov

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=87wpi4azuf.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 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.