From: Joel VanderWerf Date: 2006-04-18T08:27:56+09:00 Subject: Re: readpartial not working on ARM Joel VanderWerf wrote: > 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. Forgot to add uname: # uname -a Linux gumstix 2.6.15gum #1 Fri Apr 7 17:48:42 PDT 2006 armv5tel unknown Anyway, another data point is that timeout is not working: require 'socket' require 'timeout' s = TCPSocket.open("192.168.1.#{ARGV[0]}", 23) begin Timeout.timeout(1) do p s.gets p s.gets end rescue TimeoutError puts "timed out" end Normal output when run on a linux desktop and ARGV specifies the addr of the telnet server: "\377\373\001\r\n" timed out On the ARM platform, it hangs after printing the first line. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407