SOAP::RPC::Driver timeout

I want to be able to control the timeout length on the
SOAP::RPC::Driver. Anyone know how this can be done?

Thanks

···

--
Posted via http://www.ruby-forum.com/.

Hi,

Dennis Crissman wrote:

I want to be able to control the timeout length on the
SOAP::RPC::Driver. Anyone know how this can be done?

SOAP::RPC::Driver#options["protocol.http.connect_timeout"] = 60 # [sec]
SOAP::RPC::Driver#options["protocol.http.send_timeout"] = 120 # [sec]
SOAP::RPC::Driver#options["protocol.http.receive_timeout"] = 60 # [sec]

The 2nd and 3rd options only works when you've installed http-access2.

// NaHi

NAKAMURA, Hiroshi wrote:

SOAP::RPC::Driver#options["protocol.http.connect_timeout"] = 60 # [sec]
SOAP::RPC::Driver#options["protocol.http.send_timeout"] = 120 # [sec]
SOAP::RPC::Driver#options["protocol.http.receive_timeout"] = 60 # [sec]

The 2nd and 3rd options only works when you've installed http-access2.

Is there anyway to set the "receive_timeout" without http-access2
installed?

It appears that http-access2 is installed with the rubyforge gem, is
there any other way to install it?

···

--
Posted via http://www.ruby-forum.com/\.

Hi,

Dennis Crissman wrote:

SOAP::RPC::Driver#options["protocol.http.connect_timeout"] = 60 # [sec]
SOAP::RPC::Driver#options["protocol.http.send_timeout"] = 120 # [sec]
SOAP::RPC::Driver#options["protocol.http.receive_timeout"] = 60 # [sec]

The 2nd and 3rd options only works when you've installed http-access2.

Is there anyway to set the "receive_timeout" without http-access2
installed?

I was wrong. soap4r + net/http should handle receive_timeout option as
same as connect_timeout. Not work for you?

It appears that http-access2 is installed with the rubyforge gem, is
there any other way to install it?

I released soap4r-1.5.7 yesterday and posted gems of soap4r-1.5.7 and
httpclient-2.1.0 (formerly known as http-access2) to rubyforge this
morning. Please update soap4r (httpclient should be updated according
its dependency).

// NaHi

Let me rephrase my question from above, is there anyway to set the
"receive_timeout' without using any libraries beyond what Rails
provides?

···

--
Posted via http://www.ruby-forum.com/.