all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Helmut Eller <eller.helmut@gmail.com>
To: emacs-devel@gnu.org
Subject: retry_connect weirdness
Date: Mon, 07 Dec 2009 13:08:09 +0100	[thread overview]
Message-ID: <m2ws0zj8ba.fsf@gmail.com> (raw)

I have some questions regarding retry_connect in Fmake_network_process.

1. if connect() is interrupted (EINTR) the socket is closed via
   emacs_close() and a new socket is created on the next iteration.
   Wouldn't it be better to retry with the same socket?  

   I have a server that accepts exactly one connection, i.e. the server
   closes the listening socket after accept(). I have the suspicion that
   retrying with a fresh socket leads to problems, unfortunately the
   scenario is hard to demonstrate due to timing and interrupts etc.

2. what's the matter with those turn_on_atimers/turn_on_atimers
   around connect()?  Why are timer interrupts allowed
   in other places but not during connect?  It's especially odd
   since connect() can take so long.

3. why is EISCONN ignored?

4. am I the only who's wondering how anything can work at all with this
   #ifdef/#ifndef jungle?

Helmut





                 reply	other threads:[~2009-12-07 12:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=m2ws0zj8ba.fsf@gmail.com \
    --to=eller.helmut@gmail.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.