Adding hidden switch for disabling socket preconnect (debugging purposes)

This commit is contained in:
Miroslav Stampar 2015-12-02 12:05:40 +01:00
parent a219ff9a92
commit 80d3ff6706
2 changed files with 6 additions and 3 deletions

View File

@ -1024,6 +1024,9 @@ def _setSocketPreConnect():
Makes a pre-connect version of socket.connect
"""
if conf.disablePrecon:
return
def _():
while kb.threadContinue:
try:

View File

@ -754,6 +754,9 @@ def cmdLineParser(argv=None):
parser.add_option("--pickled-options", dest="pickledOptions",
help=SUPPRESS_HELP)
parser.add_option("--disable-precon", dest="disablePrecon", action="store_true",
help=SUPPRESS_HELP)
parser.add_option("--profile", dest="profile", action="store_true",
help=SUPPRESS_HELP)
@ -780,9 +783,6 @@ def cmdLineParser(argv=None):
parser.add_option("--run-case", dest="runCase", help=SUPPRESS_HELP)
parser.add_option("--nnc5ed", dest="nnc5ed", action="store_true",
help=SUPPRESS_HELP) # temporary hidden switch :)
parser.add_option_group(target)
parser.add_option_group(request)
parser.add_option_group(optimization)