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

Guilhem Lavaux guilhem at kaffe.org
Fri Sep 10 11:05:39 PDT 2004


Timothy Stack wrote:
>>>>- 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?
> 

I think we may use it only if the feature is available. I have already 
seen that not so much systems support it. :/ So maybe we should 
implement the two mechanism...

Cheers,

Guilhem.

> 
>>Cheers,
>>
>>Guilhem Lavaux.
> 
> 
> tim
> 





More information about the kaffe mailing list