Why cant I change the session timeout for Patron when using Faraday in Ruby? -


i trying change connection timeouts http requests done faraday using patron adapter.

i try change timeout using default_connections_options in program follows:

faraday.default_connection_options.request.timeout = 10 

the problem still experience 5000 ms (patron default) timeouts when making requests.

/users/finihoge/.rvm/gems/ruby-1.9.3-p374/gems/patron-0.6.5/lib/patron/session.rb:321:in `handle_request': operation timed out after 5003 milliseconds 0 bytes received (faraday::timeouterror) /users/finihoge/.rvm/gems/ruby-1.9.3-p374/gems/patron-0.6.5/lib/patron/session.rb:321:in `request' /users/finihoge/.rvm/gems/ruby-1.9.3-p374/gems/faraday-0.9.2/lib/faraday/adapter/patron.rb:33:in `call' /users/finihoge/.rvm/gems/ruby-1.9.3-p374/gems/faraday-0.9.2/lib/faraday/request/url_encoded.rb:15:in `call' /users/finihoge/.rvm/gems/ruby-1.9.3-p374/gems/faraday-0.9.2/lib/faraday/rack_builder.rb:139:in `build_response' /users/finihoge/.rvm/gems/ruby-1.9.3-p374/gems/faraday-0.9.2/lib/faraday/connection.rb:377:in `run_request' /users/finihoge/.rvm/gems/ruby-1.9.3-p374/gems/faraday-0.9.2/lib/faraday/connection.rb:140:in `get' 

does know doing wrong, or how can change default session timeouts in patron when using adapter in faraday?


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -