search for: workspaceresource

Displaying 1 result from an estimated 1 matches for "workspaceresource".

2009 Jul 16
1
ActiveResource timeout not functioning?
I''m trying to contact a REST API using ActiveResource on Rails 2.3.2. I''m attempting to use the timeout functionality so that if the resource I''m contacting is down I can fail quickly - I''m doing this with the following: class WorkspaceResource < ActiveResource::Base self.timeout = 5 self.site = "http://mysite.com/restAPI" end However, when I try to contact the service when I know it isn''t available, the class only times out after the default 60 seconds. I can see from the error stack that the timeout error does...