drbrain/net-http-persistent — Issue #15: SSL_write:: uninitialized when reuse_ssl_sessions and proxys enabled.
Author: Numbers
Created: 2012-02-02 12:56:43+00:00
State: open

Hello,

I've tried this on 2.3.3 (with a patched version to fix the namespace bug that got fixed in 2.4) and just bumped to 2.4 - but we're seeing some weird issues in both versions around trafficing through a proxy with the reuse_ssl_sessions flag enabled.

```
SSL_write:: uninitialized
/usr/local/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/openssl/buffering.rb:178:in `syswrite'
/usr/local/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/openssl/buffering.rb:178:in `do_write'
/usr/local/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/openssl/buffering.rb:192:in `write'
/usr/local/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/net/protocol.rb:177:in `write0'
/usr/local/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/net/protocol.rb:159:in `writeline'
/usr/local/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/net/protocol.rb:168:in `writing'
/usr/local/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/net/protocol.rb:158:in `writeline'
/var/www/otb_admin_app/shared/bundle/ruby/1.8/gems/net-http-persistent-2.4/lib/net/http/persistent/ssl_reuse.rb:106:in `connect'
/usr/local/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/net/http.rb:553:in `do_start'
/usr/local/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/net/http.rb:548:in `start'
/var/www/otb_admin_app/shared/bundle/ruby/1.8/gems/net-http-persistent-2.4/lib/net/http/persistent.rb:582:in `reset'
/var/www/otb_admin_app/shared/bundle/ruby/1.8/gems/net-http-persistent-2.4/lib/net/http/persistent.rb:397:in `connection_for'
/var/www/otb_admin_app/shared/bundle/ruby/1.8/gems/net-http-persistent-2.4/lib/net/http/persistent.rb:616:in `request'
/var/www/otb_admin_app/shared/bundle/ruby/1.8/gems/mechanize-2.1/lib/mechanize/http/agent.rb:264:in `fetch'
/var/www/otb_admin_app/shared/bundle/ruby/1.8/gems/mechanize-2.1/lib/mechanize.rb:1036:in `post_form'
/var/www/otb_admin_app/shared/bundle/ruby/1.8/gems/mechanize-2.1/lib/mechanize.rb:426:in `submit'
/var/www/otb_admin_app/shared/bundle/ruby/1.8/gems/mechanize-2.1/lib/mechanize/form.rb:178:in `submit'
/var/www/otb_admin_app/shared/bundle/ruby/1.8/gems/mechanize-2.1/lib/mechanize/form.rb:184:in `click_button'
```

Any ideas? If you need further information, I'm happy to submit.