comparison 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
comparison
equal deleted inserted replaced
40018:f80db6adabbe 40019:f5a05bb48116
710 self._futures = None 710 self._futures = None
711 711
712 def _handleresponse(self, handler, resp): 712 def _handleresponse(self, handler, resp):
713 # Called in a thread to read the response. 713 # Called in a thread to read the response.
714 714
715 while handler.readframe(resp): 715 while handler.readdata(resp):
716 pass 716 pass
717 717
718 # TODO implement interface for version 2 peers 718 # TODO implement interface for version 2 peers
719 @interfaceutil.implementer(repository.ipeerconnection, 719 @interfaceutil.implementer(repository.ipeerconnection,
720 repository.ipeercapabilities, 720 repository.ipeercapabilities,