I think there’s a bug in JRuby 1.4.0’s protocol.rb. If a website is
repeatedly downloaded using open-uri then this error message will
sporadically appear. protocol.rb:135:in `rbuf_fill’: End of file
reached (EOFError)
This may have been addressed in ruby 1.9 with an updated rbuf_fill
method?
http://redmine.ruby-lang.org/repositories/entry/ruby-19/lib/net/protocol.rb
I’ve experienced the same error on both Linux and Windows. Is this a
known issue?
require ‘open-uri’
html_file = open(‘a website’)
C:/Program Files/NetBeans
6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/net/protocol.rb:135:in rbuf_fill': End of file reached (EOFError) from C:/Program Files/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/net/protocol.rb:134:in rbuf_fill’
from C:/Program Files/NetBeans
6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/net/protocol.rb:116:in readuntil' from C:/Program Files/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/net/protocol.rb:126:in readline’
from C:/Program Files/NetBeans
6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/net/http.rb:2227:in read_chunked' from C:/Program Files/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/net/http.rb:2207:in read_body_0’
from C:/Program Files/NetBeans
6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/net/http.rb:2173:in read_body' from C:/Program Files/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/open-uri.rb:257:in open_http’
from C:/Program Files/NetBeans
6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/net/http.rb:1053:in `request’
… 13 levels…
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email