On Sunday, 11 December 2011 00:22:10 UTC, Sam Goldstein wrote:
>
> Jonathan,
>
> I believe riddle and ts have timeout functionality already that would 
> solve this problem.
> ...
> I think you can put a `timeout: <seconds>` in your sphinx.yml.
>
>
Huh.  I looked at that and discounted it because I was under the impression 
that ruby's Timeout wouldn't actually raise a timeout while 
opening/receiving from that socket.  I even tried it out in irb while I was 
debugging the server problem and came to the same conclusion.  And yet... 
it seems to work totally fine now.

I think it could be argued that we ought to use recv_nonblock & timeout 
when making requests 
in 
https://github.com/freelancing-god/riddle/blob/master/lib/riddle/client.rb#L637,
 
just in case the connection opens fine but searchd goes away before a 
request is made, but the existing timeout looks like it will cover 99% of 
the problem.

I'll try adding a timeout to our sphinx.yml and see what happens over the 
next few days.

-Jonathan

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/thinking-sphinx/-/jywkN4HM_A4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to