[kaffe] [PATCH] fixing UDP receive timeout (makes mauve not hang

Timothy Stack stack at cs.utah.edu
Fri Sep 10 08:19:11 PDT 2004


> 
> >> - should the socket be permanently non blocking?
> > 
> > 
> > I've CC:ed Tim Stack[1] & Guilhem Lavaux on that one.
> > 
> 
> Socket should be blocking by default. It is necessary for the other 
> syscalls. BTW, you may be interested by the jthread_set_blocking 
> function (available for both jthreads and pthreads for external usage) 
> which sets the blocking state of the fd (virtually for jthreads and 
> natively for pthreads).

Is there a reason we don't just use the SO_RCVTIMEO?

> Cheers,
> 
> Guilhem Lavaux.

tim




More information about the kaffe mailing list