diff --git a/nselib/comm.lua b/nselib/comm.lua
index ea1f5821a..4a3c072aa 100644
--- a/nselib/comm.lua
+++ b/nselib/comm.lua
@@ -6,13 +6,14 @@
-- exception handling via nmap.new_try.
--
-- These functions may be passed a table of options, but it's not required. The
--- keys for the options table are "bytes", "lines",
--- "proto", and "timeout". "bytes" sets
--- a minimum number of bytes to read. "lines" does the same for
--- lines. "proto" sets the protocol to communicate with,
--- defaulting to "tcp" if not provided. "timeout"
--- sets the socket timeout (see the socket function set_timeout
--- for details).
+-- keys for the options table are:
+-- * bytes - minimum number of bytes to read.
+-- * lines - minimum number of lines to read.
+-- * proto - string, protocol to use. Default "tcp"
+-- * timeout - socket timeout in milliseconds. Default 8000
+-- * connect_timeout - override timeout for connection
+-- * request_timeout - override timeout for requests
+-- * recv_before - boolean, receive data before sending first payload
--
-- If both "bytes" and "lines" are provided,
-- "lines" takes precedence. If neither are given, the functions
@@ -227,7 +228,7 @@ local function opencon(host, port, protocol, data, opts)
status, response = sd:receive()
else
if not (opts and opts.recv_before) then
- stdnse.print_debug("Using comm.tryssl without first data payload and recv_first." ..
+ stdnse.print_debug("Using comm.tryssl without either first data payload or opts.recv_before." ..
"\nImpossible to test the connection for the correct protocol!")
end
response = early_resp