[#7872] Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...>

All, I needed a nonblocking socket connect for my asynchronous-event

18 messages 2006/05/14
[#7873] Re: Nonblocking socket-connect — Tanaka Akira <akr@...17n.org> 2006/05/14

In article <3a94cf510605140559l7baa0205le341dac4f47d424b@mail.gmail.com>,

[#7874] Re: Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...> 2006/05/15

How about introducing the method Socket#set_nonblocking, or alternatively

[#7875] Re: Nonblocking socket-connect — Yukihiro Matsumoto <matz@...> 2006/05/15

Hi,

[#7876] Re: Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...> 2006/05/15

Well, it's ok then. I'm comfortable adding in the nonblocking

[#7877] Re: Nonblocking socket-connect — Yukihiro Matsumoto <matz@...> 2006/05/15

Hi,

Re: reproducible bug in DRb on OSX

From: Eric Hodel <drbrain@...7.net>
Date: 2006-05-17 03:51:00 UTC
List: ruby-core #7885
On May 16, 2006, at 7:51 PM, cremes.devlist@mac.com wrote:
> On May 16, 2006, at 5:57 PM, Eric Hodel wrote:
>> On May 16, 2006, at 12:25 PM, cremes.devlist@mac.com wrote:
>>> [snip]
>>>                     [],
>>>                     :tcp_acl => ACL.new('allow 127.0.0.1'.split("  
>>> "), ACL::ALLOW_DENY) # <-- causes failure
>>>                     #:tcp_acl => ACL.new('allow localhost'.split 
>>> (" "), ACL::ALLOW_DENY)  <-- works
>>>                     # works if you replace 127.0.0.1 with localhost
>>
>> DRb chose to listen on the IPv6 socket, so you'll need to allow  
>> both 127.0.0.1 and ::1 or just use localhost.
>>
>> You could also try removing ::1 localhost from /etc/hosts, that  
>> might fix it.
>
> Adding "allow ::1" also makes this work. So, it appears to be a  
> ipv6 issue with DRb.

127.0.0.1 is not a valid IPv6 address.  This was a bug in your code  
not handling IPv6 addresses when your OS uses them.

> Any hint as to how to fix this in a permanent fashion.

a) Make your DNS work for IPv4 and IPv6 and bind to both IPv6 and  
IPv4 addresses on your machine for interoperability.
b) Never use IPv6.

-- 
Eric Hodel - drbrain@segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com



In This Thread