def _setHTTPTimeout():
 if conf.timeout:
  infoMsg = 'setting the HTTP timeout'
  logger.log(CUSTOM_LOGGING.SYSINFO, infoMsg)
  conf.timeout = float(conf.timeout)
  if (conf.timeout < 3.0):
   warnMsg = 'the minimum HTTP timeout is 3 seconds, pocsuite will going to reset it'
   logger.log(CUSTOM_LOGGING.WARNING, warnMsg)
   conf.timeout = 3.0
 else:
  conf.timeout = 30.0
 socket.setdefaulttimeout(conf.timeout)

def _setHTTPTimeout ( ) : if conf . timeout : infoMsg = 'setting the HTTP timeout' logger . log ( CUSTOM_LOGGING . SYSINFO , infoMsg ) conf . timeout = float ( conf . timeout ) if ( conf . timeout < 3.0 ) : warnMsg = 'the minimum HTTP timeout is 3 seconds, pocsuite will going to reset it' logger . log ( CUSTOM_LOGGING . WARNING , warnMsg ) conf . timeout = 3.0 else : conf . timeout = 30.0 socket . setdefaulttimeout ( conf . timeout )
set the http timeout .