* removing unneeded python imports for smaller footprint
* fixing bug in waiting for stopped server to no longer
accept new connections.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1892615 13f79535-47bb-0310-9956-
ffa450edef68
EC_SUPPORTED = {}
EC_SUPPORTED.update([(curve.name.upper(), curve) for curve in [
- ec.BrainpoolP256R1,
- ec.BrainpoolP384R1,
- ec.BrainpoolP512R1,
ec.SECP192R1,
ec.SECP224R1,
ec.SECP256R1,
while datetime.now() < try_until:
try:
req = requests.Request('HEAD', url).prepare()
- s.send(req, verify=self._verify_certs, timeout=timeout)
+ s.send(req, verify=self._verify_certs, timeout=int(timeout.total_seconds()))
time.sleep(.2)
- except IOError:
- return True
- except:
+ except IOError as ex:
return True
log.debug("Server still responding after %d sec", timeout)
return False