From 682f4cb594591631629aa283ad17169ad9d623a7 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 13 May 2013 16:25:19 +0100 Subject: Don't write to the TCP socket for tcp-testing. --- lib/custodian/protocoltest/tcp.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/custodian') 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 ) -- cgit v1.2.1