summaryrefslogtreecommitdiff
path: root/lib
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
commit682f4cb594591631629aa283ad17169ad9d623a7 (patch)
tree74350da9734ae37c3b3eee590948ec2ccbe71ade /lib
parentcde99c668fc99e67c8c4db10fff161b4dd4b2530 (diff)
Don't write to the TCP socket for tcp-testing.
Diffstat (limited to 'lib')
-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 )