Changeset bdf00d5
- Timestamp:
- Mar 18, 2010 11:37:21 AM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- cd06678
- Parents:
- 114d24b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/remote_service.py
r114d24b rbdf00d5 443 443 while not ok and retries < self.max_retries: 444 444 try: 445 fail_exc = None 445 446 resp = remote_method(msg) 446 447 ok = True … … 451 452 if self.log: 452 453 self.log.warn("BIO error contacting %s: %s" % (url, e)) 454 fail_exc = e 453 455 retries += 1 454 456 except SSLError, e: 455 457 if self.log: 456 458 self.log.warn("SSL error contacting %s: %s" % (url, e)) 459 fail_exc = e 457 460 retries += 1 458 461 except httplib.HTTPException, e: 459 462 if self.log: 460 463 self.log.warn("HTTP error contacting %s: %s" % (url, e)) 464 fail_exc = e 461 465 retries +=1 462 466 except ParseException, e: … … 472 476 "Unexpected fault body") 473 477 474 if retries >= self.max_retries : 475 raise service_error(service_error.connect, "Too many SSL failures") 478 if retries >= self.max_retries and fail_exc and not ok: 479 raise service_error(service_error.connect, 480 "Too many failures: %s" % fail_exc) 476 481 477 482 # Unpack and convert fedids to objects
Note: See TracChangeset
for help on using the changeset viewer.