[#237] object.c ruby.h (fwd) — Robert Skarwecki <skaav@...>

Hello everybody,

42 messages 2002/07/24
[#239] Re: [PATCH] object.c ruby.h (fwd) — GOTO Kentaro <gotoken@...> 2002/07/24

At Thu, 25 Jul 2002 00:02:28 +0900,

[#240] Re: [PATCH] object.c ruby.h (fwd) — Dave Thomas <Dave@...> 2002/07/24

GOTO Kentaro <gotoken@notwork.org> writes:

[#246] Re: [PATCH] object.c ruby.h (fwd) — GOTO Kentaro <gotoken@...> 2002/07/25

At Thu, 25 Jul 2002 05:05:46 +0900,

[#247] Re: [PATCH] object.c ruby.h (fwd) — Dave Thomas <Dave@...> 2002/07/25

GOTO Kentaro <gotoken@notwork.org> writes:

[#248] Re: [PATCH] object.c ruby.h (fwd) — nobu.nokada@... 2002/07/25

Hi,

[#249] Re: [PATCH] object.c ruby.h (fwd) — Dave Thomas <Dave@...> 2002/07/25

nobu.nokada@softhome.net writes:

[#250] Re: [PATCH] object.c ruby.h (fwd) — nobu.nokada@... 2002/07/25

Hi,

[#252] Re: [PATCH] object.c ruby.h (fwd) — GOTO Kentaro <gotoken@...> 2002/07/25

At Fri, 26 Jul 2002 03:11:02 +0900,

[#253] Re: [PATCH] object.c ruby.h (fwd) — Dave Thomas <Dave@...> 2002/07/25

GOTO Kentaro <gotoken@notwork.org> writes:

Re: Patch to stop TCPSocket.new blocking on DNS lookups

From: Matthew Bloch <mattbee@...>
Date: 2002-07-17 15:08:39 UTC
List: ruby-core #232
On Wednesday 17 July 2002 15:34, you wrote:
> >>>>> "M" == Matthew Bloch <mattbee@soup-kitchen.net> writes:
>
> M> being made asychronous in the same manner.  And of course there's the
> fact M> that there's no Win32 implementation (or does Win32 sockets do
> asychronous M> DNS already?).
>
>  Well, getaddrinfo_a() is available only for glibc >= 2.2.4, no ?

Yup, I believe it's a pretty new call.  But unless we roll a DNS resolver 
into Ruby itself, an asynchronous resolver has to add an extra external 
dependency-- I'd rather it were glibc than anything else.

>  Have you looked at ADNS (GPL license) or cURL resolver ?

I have, but these would require larger architectural changes to the socket 
library which I don't really have time to do.  There are still some blocking 
calls left in there, but the most common one (to getaddrinfo, on connection) 
is sorted with the patch; and the function is only used where it's available, 
otherwise it drops back to the old behaviour.

-- 
Matthew Bloch         Bytemark Computer Consulting Limited
                                http://www.bytemark.co.uk/
                                  tel. +44 (0) 8707 455026

In This Thread