From b2e1b858c4c150fac2ecd94b17b02ee987cdf143 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 13 May 2013 16:41:57 +0100 Subject: Really use sysread. --- lib/custodian/protocoltest/tcp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/custodian/protocoltest/tcp.rb b/lib/custodian/protocoltest/tcp.rb index 30a1423..822b82c 100644 --- a/lib/custodian/protocoltest/tcp.rb +++ b/lib/custodian/protocoltest/tcp.rb @@ -147,7 +147,7 @@ module Custodian # read a banner from the remote server, if we're supposed to. read = nil - read = socket.gets(1024) if ( do_read ) + read = socket.sysread(1024) if ( do_read ) # trim to a sane length & strip newlines. read = read[0,255] unless ( read.nil? ) -- cgit v1.2.1