summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2013-05-13 16:38:12 +0100
committerSteve Kemp <steve@steve.org.uk>2013-05-13 16:38:12 +0100
commitae5bdb11628e7c85963595056b602f58ec5504e5 (patch)
tree5167588dcbbaf5c98fab4a1766bc8680f53f0f33 /lib/custodian/protocoltest
parent682f4cb594591631629aa283ad17169ad9d623a7 (diff)
Use sysread() rather than read
Diffstat (limited to 'lib/custodian/protocoltest')
-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 d44adaa..30a1423 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(nil) if ( do_read )
+ read = socket.gets(1024) if ( do_read )
# trim to a sane length & strip newlines.
read = read[0,255] unless ( read.nil? )