From 8a885b042082795bfc08a5c1a4d516904a3e072f Mon Sep 17 00:00:00 2001 From: Zach Anker Date: Thu, 18 Dec 2014 15:43:22 -0800 Subject: [PATCH] Once SASL negotiation is complete, we do not need to read from the socket --- lib/thrift/sasl_client_transport.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/thrift/sasl_client_transport.rb b/lib/thrift/sasl_client_transport.rb index 7361a3a..9c254e3 100644 --- a/lib/thrift/sasl_client_transport.rb +++ b/lib/thrift/sasl_client_transport.rb @@ -70,7 +70,7 @@ def initiate_hand_shake when NEGOTIATION_STATUS[:BAD], NEGOTIATION_STATUS[:ERROR] raise @transport.to_io.read(len) when NEGOTIATION_STATUS[:COMPLETE] - @challenge = @transport.to_io.read len + @challenge = "" when NEGOTIATION_STATUS[:OK] raise "Failed to complete challenge exchange: only NONE supported currently" end