From: Jason DiCioccio Date: 2001-09-28T05:51:58+09:00 Subject: [ruby-talk:21787] Re: net/http problems on FreeBSD 4.4-RC --MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 28, 2001 at 02:11:11AM +0900, Minero Aoki wrote: > Hi Jason, >=20 > Hmm... I cannot reproduce this bug on my linux box. > For the time being, try block form #start like the code below. >=20 > Net::HTTP.start(...) {|h| > .... > } >=20 > I strongly suggest to call #start explicitly, with block, ALWAYS. > I did not test implicit #start hardly so it might cause strange > connection bugs. Thanks! This works perfectly on the BSD box, the Solaris box, and the OS X = box, and it looks a bit better too frankly. I feel silly though for putting the timeout stuff in there, just read over http.rb and saw #read_timeout, etc := ).. Ah well.. Not that I plan on using it again, but will implicit #start calls be fixed in the future? Or perhaps removed? Thanks again! -JD- --=20 Jason DiCioccio - geniusj@bsd.st - PGP Key @ http://bsd.st/~geniusj/pgpkey.= asc PGP Key Fingerprint C442 04E2 26B0 3809 8357 96AB D350 9596 0436 7C08 --MGYHOYXEY6WxJCY8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 iQA/AwUBO7OSE9NQlZYENnwIEQIIGACgmDOeMXZ2N/FNd4aQaHvEGyY6lFMAnjzk 5WsHy88kQMIzESXHgMBf8BDG =E0Gq -----END PGP SIGNATURE----- --MGYHOYXEY6WxJCY8--