# HG changeset patch # User Gregory Szorc # Date 2018-08-22 17:25:47 # Node ID 3c6f7eebc010a0f147b36a2c77757c05909eeb14 # Parent 3fe028b657bf5397c5fd430427354e79248ec38b httppeer: add TODO about delayed handling of ^C When testing wire protocol v2 with large responses, I noticed that ^C doesn't result in immediate termination. I'm not sure what the root cause is. Let's add a TODO so we don't forget about it. Differential Revision: https://phab.mercurial-scm.org/D4438 diff --git a/mercurial/httppeer.py b/mercurial/httppeer.py --- a/mercurial/httppeer.py +++ b/mercurial/httppeer.py @@ -728,6 +728,8 @@ class httpv2executor(object): if not self._responsef: return + # TODO ^C here may not result in immediate program termination. + try: self._responsef.result() finally: