Mikel Lindsaar
3/21/2008 4:54:00 AM
> Does anyone know how to fix this? I want it to wait longer for
> the web server to respond.
Look in the docs/code and you shall find...
OpenURI wraps net/http and net/https
Looking in net/http finds these accessor methods:
# Seconds to wait until connection is opened.
# If the HTTP object cannot open a connection in this many seconds,
# it raises a TimeoutError exception.
attr_accessor :open_timeout
# Seconds to wait until reading one block (by one read(2) call).
# If the HTTP object cannot open a connection in this many seconds,
# it raises a TimeoutError exception.
attr_reader :read_timeout
Maybe that would help.
Mikel