From: Tanaka Akira Date: 2006-04-18T10:53:23+09:00 Subject: Re: readpartial not working on ARM In article <4443534E.5030303@path.berkeley.edu>, Joel VanderWerf writes: > Hi. IO#readpartial seems to be broken on ARM (Intel XScale, gumstix), > and this is causing telnet to hang. The problem is that readpartial(n) > hangs until all n bytes are received. I've tested this with TCPSockets. > > Any suggestions for me to try next? What might be misconfigured? > > Gumstix use uClibc (http://www.busybox.net/) rather than GNU libc. > > This is with ruby-1.8.4. I guess READ_DATA_PENDING is not defined properly because uClibc. If my guess is right, ruby 1.9 should work well. ruby 1.9 has its own buffering mechanism to avoid stdio buffering. -- Tanaka Akira