lkml.org 
[lkml]   [1998]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ECONNREFUSED in recvfrom ?
On Thu, 15 Oct 1998, Jamie Lokier wrote:

> 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).

no, I mean recv in peek mode before any new recv/send.
regards.

+------------------------------------------------------------------+
|Rossetti Davide INFN - Sezione Roma I - gruppo V, prog. APEmille|
| web : http://apemaia.roma1.infn.it/~rossetti |
| """"" E-mail : davide.rossetti@roma1.infn.it |
| |o o| phone : (+39)-6-49914412 |
|--o00O-O00o-- fax : (+39)-6-4957697 |
| address: Dipartimento di Fisica (V.E.) |
| Universita' di Roma "La Sapienza" |
| P.le Aldo Moro,5 I - 00185 Roma - Italy|
| pgp pub. key: finger rossetti@apemaia.roma1.infn.it |
| |
|"Most people think about twice a year. I got famous by thinking |
| once a week." - George B. Shaw (see Appendix A) |
+------------------------------------------------------------------+


-
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/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.061 / U:1.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site