Mercurial > public > mercurial-scm > hg
comparison mercurial/keepalive.py @ 7868:2b901f9b37aa
keepalive: fix reference to IncompleteRead
author | Peter Arrenbrecht <peter.arrenbrecht@gmail.com> |
---|---|
date | Mon, 23 Mar 2009 11:12:01 +0100 |
parents | a45206455d85 |
children | d812029cda85 |
comparison
equal
deleted
inserted
replaced
7867:01bd0efef1b5 | 7868:2b901f9b37aa |
---|---|
406 chunk_left = int(line, 16) | 406 chunk_left = int(line, 16) |
407 except ValueError: | 407 except ValueError: |
408 # close the connection as protocol synchronisation is | 408 # close the connection as protocol synchronisation is |
409 # probably lost | 409 # probably lost |
410 self.close() | 410 self.close() |
411 raise IncompleteRead(value) | 411 raise httplib.IncompleteRead(value) |
412 if chunk_left == 0: | 412 if chunk_left == 0: |
413 break | 413 break |
414 if amt is None: | 414 if amt is None: |
415 value += self._safe_read(chunk_left) | 415 value += self._safe_read(chunk_left) |
416 elif amt < chunk_left: | 416 elif amt < chunk_left: |