1.7.3 net library crud

after insurmountable problems with Ruby 1.7.3’s TCP classes, i decided
to try HTTP. that dosen’t seem to work either. the two are probably
related.

i’m getting protocol.rb:576:in ‘write’ Broken pipe (Errno::EPIPE) no
matter what i try.

can’t seem to do any network stuff with 1.7.3. what’s the deal?

on a brighter note WEBrick seems to work just fine. why that works but
not regular old Net::HTTP boogles the mind.

···


tom sawyer, aka transami
transami@transami.net

FYI- went back to Ruby 1.6.7 and TCP libs are now working fine, but
WEBrick broke! :frowning:

webrick/server.rb:54:in ‘getaddrinfo’: getnameinfo: ai_family not
supported (SocketError)

-tom

···

On Sun, 2002-09-08 at 02:32, Tom Sawyer wrote:

after insurmountable problems with Ruby 1.7.3’s TCP classes, i decided
to try HTTP. that dosen’t seem to work either. the two are probably
related.

i’m getting protocol.rb:576:in ‘write’ Broken pipe (Errno::EPIPE) no
matter what i try.

can’t seem to do any network stuff with 1.7.3. what’s the deal?

on a brighter note WEBrick seems to work just fine. why that works but
not regular old Net::HTTP boogles the mind.


tom sawyer, aka transami
transami@transami.net


tom sawyer, aka transami
transami@transami.net

  webrick/server.rb:54:in 'getaddrinfo': getnameinfo: ai_family not
supported (SocketError)

Well, it's best if you give your configuration and how was compiled
ruby. Have you tried (just a guess) to compile it with (from a fresh
installation)

  ./configure --enable-ipv6 --with-lookup-order-hack=INET

Guy Decoux

Which version of Ruby and WEBrick are you using?

In earlier version of WEBrick sample/httpd.rb use :BindAddress => nil.
It is known that :BindAddress => nil gives the error above in some
versions of linux box. See also:
http://www.notwork.org/ipr/webrick/webricken/0/86.html

– Gotoken

···

At Sun, 8 Sep 2002 20:19:51 +0900, Tom Sawyer wrote:

FYI- went back to Ruby 1.6.7 and TCP libs are now working fine, but
WEBrick broke! :frowning:

webrick/server.rb:54:in ‘getaddrinfo’: getnameinfo: ai_family not
supported (SocketError)

latest versions of everything. no configure options set when i compiled.
i’ll give the above a try and see what happens.

thanks.

···

On Sun, 2002-09-08 at 05:25, ts wrote:

Well, it’s best if you give your configuration and how was compiled
ruby. Have you tried (just a guess) to compile it with (from a fresh
installation)

./configure --enable-ipv6 --with-lookup-order-hack=INET


tom sawyer, aka transami
transami@transami.net