Mercurial > hg
comparison mercurial/httpclient/__init__.py @ 14293:9adbb5ef0964
httpclient: import f4c380237fd5 to fix keepalive not working
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Wed, 11 May 2011 08:00:48 -0500 |
parents | 861f28212398 |
children | 5c3de67e7402 |
comparison
equal
deleted
inserted
replaced
14292:c97d8485b5fa | 14293:9adbb5ef0964 |
---|---|
627 if self._current_response is None: | 627 if self._current_response is None: |
628 raise httplib.ResponseNotReady() | 628 raise httplib.ResponseNotReady() |
629 r = self._current_response | 629 r = self._current_response |
630 while r.headers is None: | 630 while r.headers is None: |
631 r._select() | 631 r._select() |
632 if r.complete() or r.will_close: | 632 if r.will_close: |
633 self.sock = None | 633 self.sock = None |
634 self._current_response = None | |
635 elif r.complete(): | |
634 self._current_response = None | 636 self._current_response = None |
635 else: | 637 else: |
636 self._current_response_taken = True | 638 self._current_response_taken = True |
637 return r | 639 return r |
638 | 640 |