# SOAP::RPC::Driver timeout

**URL:** <https://www.ruby-forum.com/t/soap-driver-timeout/109347>\
**Category:** Ruby\
**Created:** [July 13, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/soap-driver-timeout/109347 "2007-07-13T17:00:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![raughan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/dc4da7/32.png) [@raughan](https://www.ruby-forum.com/u/raughan)\
**Post date:** [July 13, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/soap-driver-timeout/109347/1 "2007-07-13T17:00:50Z")

</div>

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

Thanks

---

<div class="post-metadata">

**Author:** ![raughan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/dc4da7/32.png) [@raughan](https://www.ruby-forum.com/u/raughan)\
**Post date:** [July 14, 2007, 5:09am UTC](https://www.ruby-forum.com/t/soap-driver-timeout/109347/2 "2007-07-14T05:09:21Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Hi,

Dennis C. 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  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.2.1 (Cygwin)

iQEVAwUBRpg97R9L2jg5EEGlAQK8Bgf/SunSZzsAcirzpGJJrN/iH+gFUency4Tq  
RTSsg1nERFPAJSYwHTqo1ow6scxTwnLQIFXW9zigjei92y29X97uC7VrxiRJrkai  
DK3A/FWBdaFZaBL9Re3joNsSydnpskNU4HKb7ar2+qgpZ03Z26GSyQOC8iC4XhsT  
B92tNSRCJnH6+RtkZ0HMH1nEvBcvAyJR0YS3uPejZvVhJ9zze9aBUkyJ+6x5jXpK  
2JTkx1WPDOveKcMF0ju95a2oFfYD/KLK6lIudIIeEnFvqAMDnKG9AH2oA4x2eOB5  
ZGvDncIjBa84Y+ncXJd0TDlgoc2jfRNdHFSOxasTq7NJyjZvMAecDw==  
=DEVm  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![raughan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/dc4da7/32.png) [@raughan](https://www.ruby-forum.com/u/raughan)\
**Post date:** [July 16, 2007, 7:37pm UTC](https://www.ruby-forum.com/t/soap-driver-timeout/109347/3 "2007-07-16T19:37:42Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![raughan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/dc4da7/32.png) [@raughan](https://www.ruby-forum.com/u/raughan)\
**Post date:** [July 17, 2007, 4:52am UTC](https://www.ruby-forum.com/t/soap-driver-timeout/109347/4 "2007-07-17T04:52:47Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Hi,

Dennis C. 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

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.5 (Cygwin)

iQEVAwUBRpwtoh9L2jg5EEGlAQJDQwgAhKSkFx/zIlB7SBfwE22j2fLzO0Mfnmw5  
NdNVxDS5oqqgdpZQt7bqsc0/QiiHm2KFlcjIgyHp63Stwzv4EjEtOTRbYsgo5Q7g  
cUokAFUKtPAqZclfcKJmSXG3/din5ga6ThiKpwonChzgldURa5vLqZTLP4uJfoMe  
AuI5o+kg9qdHNLaj1l3u/BWJwULLOEwAU41vff+n3GEUGovAcK34aA+MSEAUJMKx  
ru9n/2Xl4d7YI8HZ9vtPIjGDcCOhHw3Cxt7vSRZATVaF2Tmwl3KiR4503A6OCPtJ  
R0yooEfBd4HLge623gYcaTNaHmTUai2wxC+eokPQwE7+dbfbe3pfCg==  
=Ngh0  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![raughan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/dc4da7/32.png) [@raughan](https://www.ruby-forum.com/u/raughan)\
**Post date:** [July 17, 2007, 7:04pm UTC](https://www.ruby-forum.com/t/soap-driver-timeout/109347/5 "2007-07-17T19:04:26Z")

</div>

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