drbrain / net-http-persistent

Thread-safe persistent connections with Net::HTTP
http://seattlerb.rubyforge.org/net-http-persistent
339 stars 117 forks source link

Tests fail using current version of OpenSSL #25

Closed gwolf closed 12 years ago

gwolf commented 12 years ago

We got the following bug report in Debian about two weeks ago:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665255

Basically, since libssl 1.0.1 entered Debian, when building the package, test/test_net_http_persistent_ssl_reuse.rb fails with:

OpenSSL::SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=unknown state

If I try to build the package with the previous version (1.0.0h), the test passes correctly.

boutil commented 12 years ago

Using a longer RSA Key seems to solve the problem. Any size greater than 745 bytes seems ok. See the comments in the Debian Bug report mentionned.

drbrain commented 12 years ago

See also ddf0cbb which creates a proper certificate for the server.