diff options
author | Steve Kemp <steve@steve.org.uk> | 2013-05-13 16:38:12 +0100 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2013-05-13 16:38:12 +0100 |
commit | 3fcc8c3d24e50868b2bfe8bcfb7b37028aeed135 (patch) | |
tree | f2e21ed9011e2bdf851b06dcfdad279b9dfabe3d | |
parent | 2fbf29fc7ea80fab484dd268983b139342c64cbe (diff) |
Use sysread() rather than read
-rw-r--r-- | lib/custodian/protocoltest/tcp.rb | 2 |
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? ) |