# Net-Ping Timeout Error

**URL:** <https://www.ruby-forum.com/t/net-ping-timeout-error/63470>\
**Category:** Ruby\
**Created:** [June 15, 2006, 2:07pm UTC](https://www.ruby-forum.com/t/net-ping-timeout-error/63470 "2006-06-15T14:07:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anoop\_Chandran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/77aa72/32.png) [@Anoop\_Chandran](https://www.ruby-forum.com/u/Anoop_Chandran)\
**Post date:** [June 15, 2006, 2:07pm UTC](https://www.ruby-forum.com/t/net-ping-timeout-error/63470/1 "2006-06-15T14:07:54Z")

</div>

Hi all,

I am getting the following error  
/usr/lib/ruby/site\_ruby/1.8/net/ping.rb:83:in `ping?': undefined method`close’ for #\<Timeout::Error: execution expired\> (NoMethodError)

I get this error while trying to ping multiple hosts, using the PingTCP  
method  
defined in net-ping “1.1.0”. The error is generated randomly and It  
happens  
with  
even after changing the default timeout=5

Could anyone suggest a workaround for this error ?

Regards  
Anoop

---

<div class="post-metadata">

**Author:** ![Anoop\_Chandran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/77aa72/32.png) [@Anoop\_Chandran](https://www.ruby-forum.com/u/Anoop_Chandran)\
**Post date:** [June 15, 2006, 6:30pm UTC](https://www.ruby-forum.com/t/net-ping-timeout-error/63470/2 "2006-06-15T18:30:21Z")

</div>

Anoop Chandran wrote:

> with  
> even after changing the default timeout=5
> 
> Could anyone suggest a workaround for this error ?
> 
> Regards  
> Anoop

That’s a bug. I’ll have a new release out asap.

Dan

---

<div class="post-metadata">

**Author:** ![Anoop\_Chandran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/77aa72/32.png) [@Anoop\_Chandran](https://www.ruby-forum.com/u/Anoop_Chandran)\
**Post date:** [June 16, 2006, 6:05am UTC](https://www.ruby-forum.com/t/net-ping-timeout-error/63470/3 "2006-06-16T06:05:43Z")

</div>

Oh … ok …  
Has this been fixed in the version 1.1.1 found in RAA ?

Thanks  
Anoop

---

<div class="post-metadata">

**Author:** ![Anoop\_Chandran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/77aa72/32.png) [@Anoop\_Chandran](https://www.ruby-forum.com/u/Anoop_Chandran)\
**Post date:** [June 16, 2006, 3:55pm UTC](https://www.ruby-forum.com/t/net-ping-timeout-error/63470/4 "2006-06-16T15:55:16Z")

</div>

Anoop Chandran wrote:

> Oh … ok …  
> Has this been fixed in the version 1.1.1 found in RAA ?
> 
> Thanks  
> Anoop

Yep, should be.

Regards,

Dan

---

<div class="post-metadata">

**Author:** ![Anoop\_Chandran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/77aa72/32.png) [@Anoop\_Chandran](https://www.ruby-forum.com/u/Anoop_Chandran)\
**Post date:** [June 16, 2006, 7:16pm UTC](https://www.ruby-forum.com/t/net-ping-timeout-error/63470/5 "2006-06-16T19:16:56Z")

</div>

Then I’ll try that version out as well …

Thanks Daniel.

Regards  
Anoop.
