EOFError

43 views
Skip to first unread message

Pranav Prakash

unread,
Feb 2, 2012, 5:51:15 AM2/2/12
to rs...@googlegroups.com
Hi, I frequently I do receive EOFErrors . here is the stack trace

/opt/local/lib/ruby/1.8/net/protocol.rb:135:in `sysread': end of file reached (EOFError)
from /opt/local/lib/ruby/1.8/net/protocol.rb:135:in `rbuf_fill'
from /opt/local/lib/ruby/1.8/timeout.rb:67:in `timeout'
from /opt/local/lib/ruby/1.8/timeout.rb:101:in `timeout'
from /opt/local/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill'
from /opt/local/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
from /opt/local/lib/ruby/1.8/net/protocol.rb:126:in `readline'
from /opt/local/lib/ruby/1.8/net/http.rb:2028:in `read_status_line'
from /opt/local/lib/ruby/1.8/net/http.rb:2017:in `read_new'
from /opt/local/lib/ruby/1.8/net/http.rb:1051:in `request'
from /opt/local/lib/ruby/1.8/net/http.rb:1037:in `request'
from /opt/local/lib/ruby/1.8/net/http.rb:543:in `start'
from /opt/local/lib/ruby/1.8/net/http.rb:1035:in `request'
from /opt/local/lib/ruby/gems/1.8/gems/rsolr-1.0.6/lib/rsolr/connection.rb:15:in `execute'
from /opt/local/lib/ruby/gems/1.8/gems/rsolr-1.0.6/lib/rsolr/client.rb:163:in `execute'
from /opt/local/lib/ruby/gems/1.8/gems/rsolr-1.0.6/lib/rsolr/client.rb:158:in `send_and_receive'

I use rsolr 1.0.6. It looks like the low level API times out before obtaining response from Solr. Is there a way this can be avoided ?

matt mitchell

unread,
Feb 12, 2012, 2:42:46 PM2/12/12
to rs...@googlegroups.com
Hi,

If this is a timeout issue, you could use the latest release (1.0.7) and set the read/open timeout settings.

What happens if you run the same query using another client like curl?

- Matt

Pranav Prakash

unread,
Feb 14, 2012, 3:26:56 PM2/14/12
to rs...@googlegroups.com
Hi Matt
Thanks for your response. I did a benchmarking on three diff params - curl, pure ruby/gem code, rails app.

A script to curl Solr 500 times, a script to use rsolr v1.0.7 and query solr 500 times and the rails development console to use our set of libraries and classes to query solr 500 times. In first tqo scenarios, there were no timeout errors (and i did not do any explicit timeout setting). While in the rails app devel console, i could see a lot of errors.

I have started to believe that this has to do with some setting with our rails app which is causing it to timeout before even waiting for the entire response to load. But I have not reached any conclusion yet. Do you have some info on what might be going wrong?

It would be a great help.

Reply all
Reply to author
Forward
0 new messages