forward3d / rbhive

Ruby gem for querying Apache Hive
http://www.forward3d.com
MIT License
98 stars 74 forks source link

Fix SASL negotiation on JRuby #25

Open zanker opened 9 years ago

zanker commented 9 years ago

On MRI, calling read(0) immediately returns an empty string. On JRuby, calling read(0) blocks forever. See issue https://github.com/jruby/jruby/issues/1637

Looking at the Java Thrift client, https://github.com/apache/thrift/blob/master/lib/java/src/org/apache/thrift/transport/TSaslTransport.java#L285 once negotiation status is complete we don't need to do anything else so this should be a safe change to make.