diff mercurial/wireprotov2server.py @ 40130:293835e0fff7

wireprotov2: pass ui into clientreactor and serverreactor This will allow us to use config options to influence compression settings. Differential Revision: https://phab.mercurial-scm.org/D4919
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 04 Oct 2018 17:17:57 -0700
parents 9b19b8ce3804
children 762ef19a07e3
line wrap: on
line diff
--- a/mercurial/wireprotov2server.py	Thu Oct 04 16:44:21 2018 -0700
+++ b/mercurial/wireprotov2server.py	Thu Oct 04 17:17:57 2018 -0700
@@ -156,7 +156,7 @@
 
     # We assume we have a unified framing protocol request body.
 
-    reactor = wireprotoframing.serverreactor()
+    reactor = wireprotoframing.serverreactor(ui)
     states = []
 
     while True:
@@ -191,7 +191,7 @@
     # TODO Some HTTP clients are full duplex and can receive data before
     # the entire request is transmitted. Figure out a way to indicate support
     # for that so we can opt into full duplex mode.
-    reactor = wireprotoframing.serverreactor(deferoutput=True)
+    reactor = wireprotoframing.serverreactor(ui, deferoutput=True)
     seencommand = False
 
     outstream = reactor.makeoutputstream()