rbuf_fill EOFError in JRuby 1.4.0 protocol.rb
---------------------------------------------
Key: JRUBY-4391
URL: http://jira.codehaus.org/browse/JRUBY-4391
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.4
Environment: Ubuntu 9.04 & Windows XP
Reporter: consiliens
Assignee: Thomas E Enebo
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). Here's a
recent discussion on exceptions raised by open-uri.
http://gist.github.com/245188
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.
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...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email