Forum: Ruby TCPSocket.open in 1.8.6 Windows?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5e78c2eb513ebef22d7504167e98b87a?d=identicon&s=25 Dick Monahan (Guest)
on 2007-07-11 16:53
(Received via mailing list)
I have a program that works under Windows XP and Ruby 1.8.5.  I just
switched to 1.8.6 and a new bug appeared.

In net/imap.rb, there is a statement "@sock = TCPSocket.open(host,
port)".
If host is a remote URL (e.g., www.anywhere.com), it works.  If host is
"localhost", or "127.0.0.1", or my local Host Name, or my local IP
Address,
it fails with "Bad file descriptor - connect(2) (Errno::EBADF)".

Since most of my test sites are on my local computer, this makes testing
difficult, if not impossible.

Help?
This topic is locked and can not be replied to.