[#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: Nonblocking socket-connect

From: Tanaka Akira <akr@...17n.org>
Date: 2006-05-14 23:46:34 UTC
List: ruby-core #7873
In article <3a94cf510605140559l7baa0205le341dac4f47d424b@mail.gmail.com>,
  "Francis Cianfrocca" <garbagecat10@gmail.com> writes:

> All, I needed a nonblocking socket connect for my asynchronous-event
> framework, and I notice that ruby_connect blocks the calling thread with
> wait_connectable. I solved my problem with this (eliding some error-checking
> and platform-specific branches):
>
> static VALUE
> sock_connect_nonblocking (self, addr)
>         VALUE self, addr;
> {

I think it's good idea to introduce new nonblocking methods.
However no one propose a method name matz accept, yet.
-- 
Tanaka Akira

In This Thread