Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
read changed to blocking in 1.9 windows?
Roger Pack
5/25/2009 6:41:00 PM
Currently with 1.9 if you do a
#include<ruby.h>
by default it overwrites any calls to 'read' and 'accept' (etc.) to be
rb_w32_read, rb_w32_accept (etc).
This worked all right in 1.8.6.
However, with 1.9 it would appear that inexplicably rb_w32_read, if it
would block (i.e. no data) blocks now, until data is ready. Thus
rb_w32_read behaves differently than the old read used to, and
differently than the way linux' read does.
Is this a bug? I assume it is?
Thanks.
-=r
--
Posted via
http://www.ruby-...
.
1 Answer
Robert Klemme
5/25/2009 7:47:00 PM
0
On 25.05.2009 20:40, Roger Pack wrote:
> Currently with 1.9 if you do a
> #include<ruby.h>
>
> by default it overwrites any calls to 'read' and 'accept' (etc.) to be
> rb_w32_read, rb_w32_accept (etc).
>
> This worked all right in 1.8.6.
> However, with 1.9 it would appear that inexplicably rb_w32_read, if it
> would block (i.e. no data) blocks now, until data is ready. Thus
> rb_w32_read behaves differently than the old read used to, and
> differently than the way linux' read does.
> Is this a bug? I assume it is?
> Thanks.
Maybe that's a side effect of using real threads in 1.9. In that case
using blocking IO might be OK.
Kind regards
robert
--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestprac...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
read changed to blocking in 1.9 windows?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password