[ILUG] (no subject)
Padraig Brady
padraig at antefacto.com
Thu Apr 25 16:47:56 IST 2002
Stephen Shirley wrote:
> Mornin' all,
> Right, here's a weird one for ye. I have a processs on a linux box,
> writing to 2 sun boxes alternately, over UDP. If i shut down the
> listener on sun box no. 1, i start getting "Connection refused" from sun
> box no. _2_. Just to be sure, i used netcat to connect to the port on
> box no. 2, and sure enough, it was fine.
> Now all the above writing was done using sendto() on a single
> socket. If i change the code so that it opens a new socket each time it
> wants to write, and calls connect(), and then uses write(), it all works
> fine.
Weird. Are you sure you're not calling connect() in the sendto()
implementation?
> I'm also having problems with dropped packets on a private lan, but
> i don't know if that's related yet or not.Anyone have any
> suggestions/similar experiences/funny stoires?
You can't ever assume no packet loss for UDP.
Even on localhost.
Padraig.
More information about the ILUG
mailing list