Changeset 328e93f for fedd/federation/util.py
- Timestamp:
- Feb 1, 2013 1:25:43 PM (12 years ago)
- Branches:
- master
- Children:
- 17c6d91
- Parents:
- 9a52a80 (diff), 06a2b49 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/util.py
r06a2b49 r328e93f 218 218 while not ok and retries < max_retries: 219 219 try: 220 if log:221 log.debug('Creating HTTPSConnection: %s' % cf)222 220 conn = httplib.HTTPSConnection(po.hostname, port=po.port, 223 221 cert_file=cf, key_file=cf, timeout=30) 224 222 conn.putrequest('GET', po.path) 225 223 conn.endheaders() 226 if log:227 log.debug('Connecting')228 224 response = conn.getresponse() 229 if log:230 log.debug('Connected')231 225 232 226 lf = open("%s/%s" % (destdir, fn), "w") 233 if log:234 log.debug('initial read')235 227 buf = response.read(4096) 236 228 while buf: 237 229 lf.write(buf) 238 if log:239 log.debug('loop read')240 230 buf = response.read(4096) 241 231 lf.close()
Note: See TracChangeset
for help on using the changeset viewer.