From: Joel VanderWerf Date: 2005-08-10T15:56:20+09:00 Subject: Re: event driven framework for ruby Tanaka Akira wrote: > In article <42F996FE.3000702@path.berkeley.edu>, > Joel VanderWerf writes: > > >>That post (148436) suggests that the native thread running the >>interpreter is not blocked, and the only danger of blocking is in the >>*ruby* thread reading the socket. Is that right? A bad UDP packet won't >>stop other ruby threads? > > > Ruby threads is not native threads. > In [ruby-talk:148436], the entire process is not blocked because > O_NONBLOCK is used. Is there any disadvantage to setting O_NONBLOCK for all UDP packets, as in [ruby-talk:148436] ? If not, I guess I'll just do that to be safe... (I'm assuming the MAC layer on our radios doesn't do its own checksumming. If it does, this might not be a problem.) -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407