summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/tcp.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2013-05-13 16:25:19 +0100
committerSteve Kemp <steve@steve.org.uk>2013-05-13 16:25:19 +0100
commit2fbf29fc7ea80fab484dd268983b139342c64cbe (patch)
treee1407dabf05bebc365edc1b6e3d7c8e3e5a2aa2a /lib/custodian/protocoltest/tcp.rb
parentff3ee93be58275fda1246c7d51ff63c4ccb69414 (diff)
Don't write to the TCP socket for tcp-testing.
Diffstat (limited to 'lib/custodian/protocoltest/tcp.rb')
-rw-r--r--lib/custodian/protocoltest/tcp.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/custodian/protocoltest/tcp.rb b/lib/custodian/protocoltest/tcp.rb
index b531d41..d44adaa 100644
--- a/lib/custodian/protocoltest/tcp.rb
+++ b/lib/custodian/protocoltest/tcp.rb
@@ -144,9 +144,8 @@ module Custodian
timeout(30) do
begin
socket = TCPSocket.new( host, port )
- socket.puts( "QUIT")
- # read a banner from the remote server
+ # read a banner from the remote server, if we're supposed to.
read = nil
read = socket.gets(nil) if ( do_read )