diff mercurial/configitems.py @ 40133:762ef19a07e3

wireprotov2: send protocol settings frame from client Now that we have client and server reactor support for protocol settings and encoding frames, we can start to send them out over the wire! This commit teaches the client reactor to send out a protocol settings frame when needed. The httpv2 peer has been taught to gather a list of supported content encoders and to advertise them through the client reactor. Because the client is now sending new frame types by default, this constitutes a compatibility break in the framing protocol. The media type version has been bumped accordingly. This will ensure existing clients won't attempt to send the new frames to old servers not supporting this explicit media type. I'm not bothering with the BC annotation because everything wireprotov2 is highly experimental and nobody should be running a server yet. Differential Revision: https://phab.mercurial-scm.org/D4922
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 08 Oct 2018 17:00:16 -0700
parents e92454e69dc3
children 30f70d11c224
line wrap: on
line diff
--- a/mercurial/configitems.py	Mon Oct 08 17:10:59 2018 -0700
+++ b/mercurial/configitems.py	Mon Oct 08 17:00:16 2018 -0700
@@ -574,6 +574,9 @@
 coreconfigitem('experimental', 'httppeer.advertise-v2',
     default=False,
 )
+coreconfigitem('experimental', 'httppeer.v2-encoder-order',
+    default=None,
+)
 coreconfigitem('experimental', 'httppostargs',
     default=False,
 )