Re: ECONNREFUSED in recvfrom ?

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Thu, 15 Oct 1998 14:02:52 +0100


On Tue, 13 Oct 1998, Albert D. Cahalan wrote:
> > Wouldn't you say this is a fundamental design flaw too:
> >
> > 1. send packet
> > 2. sent unrelated packet (does it go out?), get error from packet one
> > 3. send packet
> > 4. quit
> >
> > (and obviously no errors on that last packet...)

Of course, that last packet may return an ICMP error but you closed the socket before receiving it...

> perhaps, it'd be useful to recv in PEEK mode after each sending, just to
> check for errors.

Well if you do it _immediately_ after each sending, the ICMP error
response probably won't have been received yet (except for loopback
devices).

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/