Skip to content

Instantly share code, notes, and snippets.

View dalyons's full-sized avatar

David Lyons dalyons

  • Chime
  • San Francisco
View GitHub Profile
@dalyons
dalyons / gist:1425320
Created December 2, 2011 23:25
openssl hax needed to get a fairly standard rails3.1 app going on JRuby 1.6.x
if defined?(JRUBY_VERSION)
#Hackily implement a missing method in JRuby net library that causes:
# undefined method `read_nonblock' for #<OpenSSL::SSL::SSLSocket:0xb692bc4>
#
#See: http://jira.codehaus.org/browse/JRUBY-5529
#
#In my case, its trigger from faraday in the oauth2 gem.