# ETIMEDOUT error code

**URL:** <https://www.ruby-forum.com/t/etimedout-error-code/185472>\
**Category:** IronRuby\
**Created:** [March 20, 2010, 10:56pm UTC](https://www.ruby-forum.com/t/etimedout-error-code/185472 "2010-03-20T22:56:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Diller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/eb8c5e/32.png) [@Jason\_Diller](https://www.ruby-forum.com/u/Jason_Diller)\
**Post date:** [March 20, 2010, 10:56pm UTC](https://www.ruby-forum.com/t/etimedout-error-code/185472/1 "2010-03-20T22:56:58Z")

</div>

I have been attempting to get an existing Ruby lib running under  
IronRuby. The first problem I hit was that there was no definition for  
the ETIMEDOUT error code in IR, so I added it and humbly submit my  
changes as a patch for your consideration.

I’m currently running into problems because the library I’m using makes  
HTTPS calls and from my point of view as a raw noob to both IR and Ruby  
itself it appears that HTTPS support (via OpenSSL?) is missing from  
IronRuby. Is this the case? (I’m sure there’s a better than zero chance  
that I’m just missing a dependency of some sort as well).

Jason

---

<div class="post-metadata">

**Author:** ![Jason\_Diller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/eb8c5e/32.png) [@Jason\_Diller](https://www.ruby-forum.com/u/Jason_Diller)\
**Post date:** [March 23, 2010, 12:53am UTC](https://www.ruby-forum.com/t/etimedout-error-code/185472/2 "2010-03-23T00:53:22Z")

</div>

Further to my previous question about SSL. here are the details of what  
is failing:

http.verify\_mode = OpenSSL::SSL::VERIFY\_PEER  
#the following line causes a ‘nomethoderror’ because ca\_file is  
undefined  
http.ca\_file = File.dirname( **FILE** ) + ‘somecert.pem’

If I attempt to work around that error by omitting setting the ca\_file  
and setting the verify\_mode to VERIFY\_NONE I later (from the ‘connect’  
method in http.rb) get a NameError because OpenSSL::SSL::SSLSocket is  
also undefined.

I’m wondering if I’m missing an OpenSSL library/gem or if the SSL  
support is still to come in IronRuby. Could someone poke me in the  
right direction?

---

<div class="post-metadata">

**Author:** ![Jason\_Diller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/eb8c5e/32.png) [@Jason\_Diller](https://www.ruby-forum.com/u/Jason_Diller)\
**Post date:** [March 23, 2010, 1:09am UTC](https://www.ruby-forum.com/t/etimedout-error-code/185472/3 "2010-03-23T01:09:45Z")

</div>

## OpenSSL is not complete yet

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C.  
Web: [http://whiterabbitconsulting.eu](http://whiterabbitconsulting.eu) - [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([IronRuby in Action - Ivan Porto Carrero and Adam Burmister | Manning](http://manning.com/carrero))  
Microsoft IronRuby/C# MVP

---

<div class="post-metadata">

**Author:** ![Jason\_Diller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/eb8c5e/32.png) [@Jason\_Diller](https://www.ruby-forum.com/u/Jason_Diller)\
**Post date:** [March 23, 2010, 1:15am UTC](https://www.ruby-forum.com/t/etimedout-error-code/185472/4 "2010-03-23T01:15:02Z")

</div>

IronRuby doesn’t fully implement OpenSLL class yet. Contributions would  
be appreciated :).

Tomas

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Jason Diller  
Sent: Monday, March 22, 2010 4:51 PM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Ironruby-core] ETIMEDOUT error code

Further to my previous question about SSL. here are the details of what  
is failing:

http.verify\_mode = OpenSSL::SSL::VERIFY\_PEER  
#the following line causes a ‘nomethoderror’ because ca\_file is  
undefined  
http.ca\_file = File.dirname( **FILE** ) + ‘somecert.pem’

If I attempt to work around that error by omitting setting the ca\_file  
and setting the verify\_mode to VERIFY\_NONE I later (from the ‘connect’  
method in http.rb) get a NameError because OpenSSL::SSL::SSLSocket is  
also undefined.

I’m wondering if I’m missing an OpenSSL library/gem or if the SSL  
support is still to come in IronRuby. Could someone poke me in the  
right direction?

On 20/03/2010 5:56 PM, Jason Diller wrote:

I have been attempting to get an existing Ruby lib running under  
IronRuby. The first problem I hit was that there was no definition for  
the ETIMEDOUT error code in IR, so I added it and humbly submit my  
changes as a patch for your consideration.

I’m currently running into problems because the library I’m using makes  
HTTPS calls and from my point of view as a raw noob to both IR and Ruby  
itself it appears that HTTPS support (via OpenSSL?) is missing from  
IronRuby. Is this the case? (I’m sure there’s a better than zero chance  
that I’m just missing a dependency of some sort as well).

Jason

* * *

Ironruby-core mailing list

removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)
