diff mercurial/httppeer.py @ 40019:f5a05bb48116

wireprotov2: change name and behavior of readframe() In the near future, we will want to support performing I/O from other sources. Let's rename readframe() to readdata() and tweak its logic to support future growth. Differential Revision: https://phab.mercurial-scm.org/D4771
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 26 Sep 2018 15:53:49 -0700
parents f80db6adabbe
children 86b22a4cfab1
line wrap: on
line diff
--- a/mercurial/httppeer.py	Wed Sep 26 16:07:59 2018 -0700
+++ b/mercurial/httppeer.py	Wed Sep 26 15:53:49 2018 -0700
@@ -712,7 +712,7 @@
     def _handleresponse(self, handler, resp):
         # Called in a thread to read the response.
 
-        while handler.readframe(resp):
+        while handler.readdata(resp):
             pass
 
 # TODO implement interface for version 2 peers