9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Charles Forsyth <forsyth@terzarima.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] devip connect error state
Date: Wed,  8 Aug 2007 22:48:33 +0100	[thread overview]
Message-ID: <0dcfc21f39f97f0b3f2a29bf97d5fc77@terzarima.net> (raw)
In-Reply-To: <a4e6962a0708081359n32d8bcc2ic9ba2af4c57a271a@mail.gmail.com>

> The result being if the connect fails, the state remains Connecting,
> and subsequent writes of 'connect' commands fail because Econinuse.
> 
> In Plan 9/Inferno, this doesn't really matter much because if dial(2)
> fails we close the fd to the ctl file.
> 
> Now in the Libra library OS stuff that I've been working on, we are
> using a slight different (more socket-ish) semantic.  There's nothing
> in the devip man pages that say that I can't issue new commands to the
> ctl file after a failed command.

i imagine that on at least one of the platforms on which the code runs,
``socket-ish semantics'' are not as well-defined as you think, and the
underlying fd goes into a peculiar state when the connect fails.
it's not in fact hung up, but you can't connect again. i think
the code's choosing an existing state (i suppose it ought to have
added a new state Buggered, except that sets off the spam filters) that
blocks further connection requests but allows some interaction with
the fd.  (i don't know why, yet.)



      parent reply	other threads:[~2007-08-08 21:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-08 20:59 Eric Van Hensbergen
2007-08-08 21:14 ` ron minnich
2007-08-08 21:19 ` Charles Forsyth
2007-08-09  3:33   ` Eric Van Hensbergen
2007-08-09  6:47     ` Bruce Ellis
2007-08-09  8:38       ` Charles Forsyth
2007-08-08 21:48 ` Charles Forsyth [this message]

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=0dcfc21f39f97f0b3f2a29bf97d5fc77@terzarima.net \
    --to=forsyth@terzarima.net \
    --cc=9fans@cse.psu.edu \
    /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).