Sysread error in "net" library?

Hi,

I am reading RSS feeds and quite often I get the following error in the
“net” library. Anybody had such error before?

Any info would be very useful?

Thanks, Hari


/usr/lib/ruby/1.8/net/protocol.rb:133:in sysread': end of file reached (EOFError) from /usr/lib/ruby/1.8/net/protocol.rb:133:in rbuf_fill’
from /usr/lib/ruby/1.8/timeout.rb:56:in timeout' from /usr/lib/ruby/1.8/timeout.rb:76:in timeout’
from /usr/lib/ruby/1.8/net/protocol.rb:132:in rbuf_fill' from /usr/lib/ruby/1.8/net/protocol.rb:116:in readuntil’
from /usr/lib/ruby/1.8/net/protocol.rb:126:in readline' from /usr/lib/ruby/1.8/net/http.rb:1988:in read_status_line’
from /usr/lib/ruby/1.8/net/http.rb:1977:in `read_new’
… 13 levels…
from (eval):1


View this message in context:
http://www.nabble.com/sysread-error-in-"net"-library--tf2121538.html#a5851469
Sent from the RubyOnRails Users forum at Nabble.com.

Nara H. wrote:

Hi,

I am reading RSS feeds and quite often I get the following error in the
“net” library. Anybody had such error before?

Any info would be very useful?

Thanks, Hari


/usr/lib/ruby/1.8/net/protocol.rb:133:in sysread': end of file reached (EOFError) from /usr/lib/ruby/1.8/net/protocol.rb:133:in rbuf_fill’
from /usr/lib/ruby/1.8/timeout.rb:56:in timeout' from /usr/lib/ruby/1.8/timeout.rb:76:in timeout’
from /usr/lib/ruby/1.8/net/protocol.rb:132:in rbuf_fill' from /usr/lib/ruby/1.8/net/protocol.rb:116:in readuntil’
from /usr/lib/ruby/1.8/net/protocol.rb:126:in readline' from /usr/lib/ruby/1.8/net/http.rb:1988:in read_status_line’
from /usr/lib/ruby/1.8/net/http.rb:1977:in `read_new’
… 13 levels…
from (eval):1


View this message in context:
http://www.nabble.com/sysread-error-in-"net"-library--tf2121538.html#a5851469
Sent from the RubyOnRails Users forum at Nabble.com.

Errno::EOFError usually means the other side closed the connection. This
is a standard error with syswrite, and unless I’m missing something
about your case, you should be trapping it. (I assume you’re using
blocking i/o, otherwise there would be a few other things you have catch
as well.)