Re: TCP connect in Non Blocking Mode
- From: Alan McKenney <alan_mckenney1@xxxxxxxxx>
- Date: Mon, 28 Apr 2008 09:14:48 -0700 (PDT)
On Apr 28, 7:39 am, David Schwartz <dav...@xxxxxxxxxxxxx> wrote:
It is also extremely unhelpful to suggest that novices do something
useless even though it's harmless. ..
To bring the discussion from "ad hominem" back to "ad rem":
Is it or is it not necessary to set the bit in readset if you
want
select to return immediately on "connection refused"? (This
was the point of the OP.)
At first I thought the answer was "yes", but then people called
it "cargo cult programming", which implies "no." So now
I'm confused.
I can think of 3 possible answers:
1. It is necessary. In that case, it is _not_ useless, unless
for
some reason you would rather wait the 30 seconds
to get the connection refused error.
2. It is not necessary, the bit in writeset is enough. If so,
we of the great unwashed would like to know what was
wrong with the OP's program.
3. It is not necessary, you need to do Y. If so,
please tell us Y.
Arguing about who is doing "cargo cult programming" may
make you feel wise, but it is just confusing for those of
us who don't already know all the anwers.
.
- Follow-Ups:
- Re: TCP connect in Non Blocking Mode
- From: David Schwartz
- Re: TCP connect in Non Blocking Mode
- References:
- TCP connect in Non Blocking Mode
- From: Prabhu
- Re: TCP connect in Non Blocking Mode
- From: Rainer Temme
- Re: TCP connect in Non Blocking Mode
- From: David Schwartz
- Re: TCP connect in Non Blocking Mode
- From: Rainer Temme
- Re: TCP connect in Non Blocking Mode
- From: David Schwartz
- Re: TCP connect in Non Blocking Mode
- From: Rainer Temme
- Re: TCP connect in Non Blocking Mode
- From: Rainer Weikusat
- Re: TCP connect in Non Blocking Mode
- From: Alex Fraser
- Re: TCP connect in Non Blocking Mode
- From: Rainer Weikusat
- Re: TCP connect in Non Blocking Mode
- From: David Schwartz
- TCP connect in Non Blocking Mode
- Prev by Date: Re: Timer in C
- Next by Date: Re: TCP connect in Non Blocking Mode
- Previous by thread: Re: TCP connect in Non Blocking Mode
- Next by thread: Re: TCP connect in Non Blocking Mode
- Index(es):
Relevant Pages
|