# \[Ann\] OpenSSL for Ruby 1.0.0

**URL:** <https://rubytalk.org/t/ann-openssl-for-ruby-1-0-0/7002>\
**Category:** ruby-talk\
**Created:** [24 July 2003 09:41 UTC](https://rubytalk.org/t/ann-openssl-for-ruby-1-0-0/7002 "2003-07-24T09:41:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michal\_Rokos](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Michal\_Rokos](https://rubytalk.org/u/Michal_Rokos)\
**Post date:** [24 July 2003 09:41 UTC](https://rubytalk.org/t/ann-openssl-for-ruby-1-0-0/7002/1 "2003-07-24T09:41:41Z")

</div>

Andy Hauser \<buggs-ruby () splashground ! de\>:

> Is it now thread save?  
> I’m asking because when i use net/imap with openssl  
> it very often starves, doesn’t happen without openssl.

Do you have any code that we can test?  
What platform are you using?

I’d like to debug this.

It’s a pity that you didn’t report this earlier…

```
Michal

```

> **···**
>
> –  
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-  
> Michal Rokos Czech Technical University, Prague  
> e-mail: m.rokos@sh.cvut.cz icq: 36118339 jabber: majkl@jabber.cz  
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

---

<div class="post-metadata">

**Author:** ![Andreas\_Hauser](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Andreas\_Hauser](https://rubytalk.org/u/Andreas_Hauser)\
**Post date:** [24 July 2003 14:33 UTC](https://rubytalk.org/t/ann-openssl-for-ruby-1-0-0/7002/2 "2003-07-24T14:33:19Z")

</div>

Indeed i just narrowed it down just before i saw the announcement.  
But i also thought it was a known problem:

> **[Halting Ruby's threading](https://groups.google.com/g/comp.lang.ruby/c/JXD9mnoFNy8/m/JwJ0iKWfNE4J?hl=en)**

Thanks alot for taking interest.

First i tested various combinations of:  
IMAP Servers: cyrus, courier, dovecot  
OS: FreeBSD, Linux  
Therefore i don’t expect it to be problems of the respective implementations.

Though it seems to always lockup on the same message,  
so make sure you use a folder with a bunch of messages.  
If you still can’t reproduce it i can happily give you  
access to one of my servers.  
There is a chance that the problem is located  
in net/imap or one of its requires, but after  
reading the above linked message i thought  
i had found the source.

You can test it with this:  
----8\<----  
#!/usr/bin/env ruby18  
require “net/imap”

# CHANGE THIS TO YOUR ENVIROMENT

password = “PASS”  
user = “NAME”  
server = “IMAPSERVER”

# CHANGE THIS TO TEST true/false

usessl = true

certs = nil  
verify = false

if usessl then  
port = “993”  
else  
port = “143”  
end

p @imap = Net::IMAP.new(server, port, usessl, certs, verify)  
p @imap.authenticate(‘CRAM-MD5’, user, password)  
p @imap.select(“INBOX”)  
p @imap.status(“INBOX”,[“MESSAGES”])

parts = [“RFC822.SIZE”, “INTERNALDATE”]  
p @imap.fetch(1..-1, parts)

----\>8----

> **···**
>
> On Thu, Jul 24, 2003 at 06:41:41PM +0900, Michal Rokos wrote:
> 
> > Andy Hauser \<buggs-ruby () splashground ! de\>:
> > 
> > > Is it now thread save?  
> > > I’m asking because when i use net/imap with openssl  
> > > it very often starves, doesn’t happen without openssl.
> > 
> > Do you have any code that we can test?  
> > What platform are you using?
> > 
> > I’d like to debug this.
> > 
> > It’s a pity that you didn’t report this earlier…
