# Re: threads and resolving names

**URL:** <https://www.ruby-forum.com/t/re-threads-and-resolving-names/111610>\
**Category:** Ruby\
**Created:** [August 9, 2007, 4:03am UTC](https://www.ruby-forum.com/t/re-threads-and-resolving-names/111610 "2007-08-09T04:03:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [August 9, 2007, 4:03am UTC](https://www.ruby-forum.com/t/re-threads-and-resolving-names/111610/1 "2007-08-09T04:03:38Z")

</div>

Subject: [ruby-talk:10482] Re: threads and resolving names  
From: “Joseph McDonald”   
Date: Wed, 7 Feb 2001 15:27:00 +0900  
In-reply-to: 10481

> |I thought if I created a bunch of threads that I could get around  
> |the problem and would only hang when all threads (100) are hung.  
> |But that doesn’t seem to be the case. Do I have my threading  
> |wrong?
> 
> Sorry, resolving by gethostbyname(3) etc block whole process. It’s a  
> pity of user level thread.
> 
> ```
> matz.
> 
> ```

I for one find this a serious defect [all threads block (?) when one is  
resolving a DNS address]. Well cross your fingers and hope it gets  
fixed soon!

Thanks.  
-Roger

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [August 9, 2007, 4:17am UTC](https://www.ruby-forum.com/t/re-threads-and-resolving-names/111610/2 "2007-08-09T04:17:53Z")

</div>

On Aug 8, 2007, at 19:03, Roger P. wrote:

> > Sorry, resolving by gethostbyname(3) etc block whole process. It’s a  
> > pity of user level thread.
> > 
> > ```
> > matz.
> > 
> > ```
> 
> I for one find this a serious defect [all threads block (?) when  
> one is  
> resolving a DNS address]. Well cross your fingers and hope it gets  
> fixed soon!

It was fixed ages ago.

require ‘resolv’
