From: Jason DiCioccio Date: 2001-09-27T06:43:16+09:00 Subject: [ruby-talk:21751] Another Net::HTTP problem for me.. --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This time I encountered the problem on a Solaris box. Again, as my previous email stated. This script worked fine on OS X 10.1 (Darwin) but not FreeBSD and now Solaris 2.6.. Please refer to ruby-talk:21688 for the script in question and the problem I was having with ruby and Net::HTTP on FreeBSD.. Basically the problem I'm having on the solaris box is that on this line: h.get2( recv.header['Location'] ) do |page| the script will hang. There are many other get2 lines in the script using = that same object (h - a Net::HTTP object). So i'm not sure why this particular one hangs, and if I do it on the darwin box it runs fine. FreeBSD's issue = is completely different though.. It's very strange that i'm getting completely different results on every platform in an interpreted language ;). recv.header['Location'] is /Ariba/Buyer/aw?null=3Dawsn&aws=3DuAPDqifqW9ttx3= yh&awr=3D1 by the way. The string after aws=3D is random since it is a session id. The backtrace (obtained from when a TimeoutError exception was raised from waiting 15 seconds for the request to finish) follows: /usr/local/lib/ruby/1.6/timeout.rb:37:in `write' /usr/local/lib/ruby/1.6/net/protocol.rb:804:in `do_write' /usr/local/lib/ruby/1.6/net/protocol.rb:663:in `writeline' /usr/local/lib/ruby/1.6/net/protocol.rb:663:in `writing' /usr/local/lib/ruby/1.6/net/protocol.rb:663:in `writeline' /usr/local/lib/ruby/1.6/net/http.rb:1028:in `request' /usr/local/lib/ruby/1.6/net/http.rb:1028:in `canonical_each' /usr/local/lib/ruby/1.6/net/http.rb:822:in `each' /usr/local/lib/ruby/1.6/net/http.rb:822:in `canonical_each' /usr/local/lib/ruby/1.6/net/http.rb:1028:in `request' /usr/local/lib/ruby/1.6/net/http.rb:1007:in `sendreq_no_body' /usr/local/lib/ruby/1.6/net/http.rb:981:in `exec' /usr/local/lib/ruby/1.6/net/http.rb:597:in `__send__' /usr/local/lib/ruby/1.6/net/http.rb:597:in `request' /usr/local/lib/ruby/1.6/net/http.rb:596:in `connecting' /usr/local/lib/ruby/1.6/net/http.rb:596:in `request' /usr/local/lib/ruby/1.6/net/http.rb:584:in `get2' aribasitemon.rb:67 aribasitemon.rb:58:in `request' /usr/local/lib/ruby/1.6/net/http.rb:596:in `connecting' /usr/local/lib/ruby/1.6/net/http.rb:596:in `request' /usr/local/lib/ruby/1.6/net/http.rb:584:in `post2' aribasitemon.rb:58 aribasitemon.rb:56:in `timeout' aribasitemon.rb:56 Sorry if this email seems a bit sloppy. I appreciate your time. Thanks in advance, -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 --0OAP2g/MAC+5xKAE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 iQA/AwUBO7JMhNNQlZYENnwIEQIMIgCfZP2qoyO20gfdHBfnDPn9P50g7KwAnRq8 b9GRAeQePv+6Y4kZEYmazAtp =RgF9 -----END PGP SIGNATURE----- --0OAP2g/MAC+5xKAE--