unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: emacs-devel@gnu.org
Subject: Re: network process timeouts
Date: Thu, 22 Sep 2016 14:54:22 +0200	[thread overview]
Message-ID: <m3shssm6wx.fsf@gnus.org> (raw)
In-Reply-To: <87wpi4azuf.fsf@lifelogs.com> (Ted Zlatanov's message of "Thu, 22 Sep 2016 08:22:32 -0400")

Ted Zlatanov <tzz@lifelogs.com> writes:

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

Timeout parameters would be nice, but you end up having to do some kind
of "global" timeout anyway, so in many cases it's surprisingly
non-useful.  :-)

For instance, I'm writing a little module now that connects to my
wifi-enabled camera, and if it's up, downloads any new images that exist
there, and inserts them into the current buffer.

The number of things that may time out is rather large.  The initial
connection (if the camera isn't on), fetching the table of contents,
and fetching the actual image.  What you end up having to do, since this
should all happen asynchronously anyway, is to start a non-blocking
connect, and then see what happens: Having the timeout as a connection
parameter doesn't really help here (since things may time out after
connection, if, for instance, the camera switches itself off after the
handshake has been completed).

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



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

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-22 12:22 network process timeouts Ted Zlatanov
2016-09-22 12:54 ` Lars Ingebrigtsen [this message]
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

  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=m3shssm6wx.fsf@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 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).