Changeset f490c75


Ignore:
Timestamp:
Jun 13, 2012 5:41:00 PM (12 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, master
Children:
68f03a6
Parents:
9f4b3c6
Message:

Use the max_retries parameter (!?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/util.py

    r9f4b3c6 rf490c75  
    215215    ok = False
    216216    failed_exception = None
    217     while not ok and retries < 5:
     217    while not ok and retries < max_retries:
    218218        try:
    219219            if log:
    220                 log.debug('Creating HTTPSConnection')
     220                log.debug('Creating HTTPSConnection: %s' % cf)
    221221            conn = httplib.HTTPSConnection(po.hostname, port=po.port,
    222222                    cert_file=cf, key_file=cf, timeout=30)
     
    253253            retries += 1
    254254
    255     if retries > 5 and failed_exception:
     255    if retries > max_retries and failed_exception:
    256256        if log:
    257257            log.debug('Raising %s', failed_exception)
Note: See TracChangeset for help on using the changeset viewer.