----- Original Message -----
From: Yukihiro Matsumoto <matz / ruby-lang.org>
To: ruby-talk ML <ruby-talk / ruby-lang.org>
Sent: Thursday, November 15, 2001 11:33 PM
Subject: [ruby-talk:25386] Re: Is TCPSocket thread safe?


> Hi,
>
> In message "[ruby-talk:25274] Re: Is TCPSocket thread safe?"
>     on 01/11/16, Jason DiCioccio <geniusj / bluenugget.net> writes:
>
> |I have a fairly large TCPServer implementation that I have created.
> | However, from time to time the whole thing just blocks for up to a
> |minute.  It's fairly rare but quite annoying.  I don't have any calls to
> |gethostbyname() directly..  So I'm not sure what's happening unless some
> |other function in the standard ruby socket library is calling
> |gethostbyname for me.  Are there any other functions that would cause
> |this?  I have the ruby-mysql library included as well where I just do
> |Mysql#query and fetch results from that, I don't see why this would
> |cause a lockup, although it connects via 'localhost' ,that's in
> |/etc/hosts.  Any help would be greatly appreciated :-)
>
>   Thread.do_not_reverse_lookup = true
>
> may help.

I guess you mean TCPSocket, not Thread.

Hal