Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
40132:e67522413ca8 | 40133:762ef19a07e3 |
---|---|
572 default=False, | 572 default=False, |
573 ) | 573 ) |
574 coreconfigitem('experimental', 'httppeer.advertise-v2', | 574 coreconfigitem('experimental', 'httppeer.advertise-v2', |
575 default=False, | 575 default=False, |
576 ) | 576 ) |
577 coreconfigitem('experimental', 'httppeer.v2-encoder-order', | |
578 default=None, | |
579 ) | |
577 coreconfigitem('experimental', 'httppostargs', | 580 coreconfigitem('experimental', 'httppostargs', |
578 default=False, | 581 default=False, |
579 ) | 582 ) |
580 coreconfigitem('experimental', 'mergedriver', | 583 coreconfigitem('experimental', 'mergedriver', |
581 default=None, | 584 default=None, |