"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "swift/common/middleware/proxy_logging.py" between
swift-2.19.1.tar.gz and swift-2.21.0.tar.gz

About: OpenStack swift is software for creating redundant, scalable object storage using clusters of commodity servers to store terabytes or even petabytes of accessible data (now supporting storage policies).
The "Stein" series (latest release).

proxy_logging.py  (swift-2.19.1):proxy_logging.py  (swift-2.21.0)
skipping to change at line 318 skipping to change at line 318
self.access_logger.timing_since( self.access_logger.timing_since(
metric_name_policy + '.first-byte.timing', start_time) metric_name_policy + '.first-byte.timing', start_time)
bytes_sent = 0 bytes_sent = 0
client_disconnect = False client_disconnect = False
try: try:
while chunk: while chunk:
bytes_sent += len(chunk) bytes_sent += len(chunk)
yield chunk yield chunk
chunk = next(iterator) chunk = next(iterator)
except StopIteration: # iterator was depleted
except GeneratorExit: # generator was closed before we finished except GeneratorExit: # generator was closed before we finished
client_disconnect = True client_disconnect = True
raise raise
finally: finally:
status_int = status_int_for_logging(client_disconnect) status_int = status_int_for_logging(client_disconnect)
self.log_request( self.log_request(
req, status_int, input_proxy.bytes_received, bytes_sent, req, status_int, input_proxy.bytes_received, bytes_sent,
start_time, time.time(), resp_headers=resp_headers) start_time, time.time(), resp_headers=resp_headers)
close_method = getattr(iterable, 'close', None) close_method = getattr(iterable, 'close', None)
if callable(close_method): if callable(close_method):
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)