Re: TCP connect in Non Blocking Mode



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.

.



Relevant Pages

  • Re: Im newbie so I might understand more
    ... or stochastic control maybe better. ... very confusing. ... Tuning a system by observing its behavior and with a range of tuning adjustments is a way to deduce its transfer function. ... It make no sense for me to claim that a car is useless because it might be unstable. ...
    (sci.engr.control)
  • Re: Aspiring highest-order programmer
    ... I am wrong here and participating in creating a confusing and ... This is the SECOND time I have made this error in terminology. ... This discussion is confusing and useless because while your motivation ...
    (comp.programming)
  • Amaze (or confuse) your friends
    ... that this is a perfectly valid Forth construct: ... Useless, but harmless. ... Succinct and clear, ...
    (comp.lang.forth)
  • [PATCH 06/37] ACPI: Fix mismerge in acpi_hibernation_finish
    ... but the old copy had been left (it's harmless, but also useless). ... static void acpi_hibernation_finish ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: The search key was not found in any record. (Error 3709)
    ... Since the Range is optional, the last "" in your statement is useless, and it ... might be confusing to Access. ... Is it an access problem resolving with a simple shut down? ... Any ideias? ...
    (microsoft.public.access.formscoding)