summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2013-05-13 16:41:57 +0100
committerSteve Kemp <steve@steve.org.uk>2013-05-13 16:41:57 +0100
commit9eb1e5ce5a5b3326c0d065ee87eb300e22ea5e5b (patch)
tree35915f1706958f8698b65b2450572c70c61d2f1e /lib
parentdabe40517d5d50a27307722375c71822a46af75d (diff)
Really use sysread.
Diffstat (limited to 'lib')
-rw-r--r--lib/custodian/protocoltest/tcp.rb2
1 files changed, 1 insertions, 1 deletions
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? )