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

Hi,

(2008/12/30 3:35), Anton Vaynshtok wrote:
> Bug #949: Net::HTTP timeout does not abandon request properly
> http://redmine.ruby-lang.org/issues/show/949
> 
> Author: Anton Vaynshtok
> Status: Open, Priority: Normal
> Target version: Ruby 1.8.6
> 
> Note: I originally submitted this to the tracker at rubyforge.org, but I see that most of the tickets there are just being forwarded here.
> ---
> 
> It appears that when an http request times out the response is still correctly processed once it is received and returned
> to the *next* request.

+1 for net/http's bug but I have no idea how we fix this.  For now, you
need to call HTTP#finish and HTTP#start again before hitting the next
request.

net/http should catch Timeout::Error (Timeout::Error should be handled
by the caller of timeout() in ruby) and do clean up things properly to
avoid this kind of strange behavior.  Someone?

Regards,
// NaHi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)

iQEcBAEBAgAGBQJJZg0FAAoJEKYDTjohNqG5hKYH+gMMbaPBI8GWWgecPRC3FvM/
kUBD5tbe4FHq4fzkc9RJURIq3y9IxKM6IVnqlZk6Xw0Ujo0a9YO6IZWfUGGPyV8O
CPRk/aDUidFnsRB7P/lhbU9M2xub06D7RHEDMmpJ7lb8KqxrLKzBeJ8z7AdfKTlV
TOVdGEUU1XMdeQ0Tqz6u8TquF9tCkw8s7yUAXnvbEgPR183ma9zOysL0dbGzHnBr
gSLkDn31NVI1lBWr8EVxvtcKxJstQjWI4oKRdNlonvk2yxBXqiEwE1qSCkfardyY
4DIQOqsEpac47yEPBDKhOMO3wpc0I2LaPnbPZb1mcJZZ7PrcSlKgW2iuxNI5iZQ=
=jbMd
-----END PGP SIGNATURE-----