]> source.dussan.org Git - jgit.git/commit
ProtocolV2Parser: Introduce advertise sideband-all option 63/150863/7
authorIvan Frade <ifrade@google.com>
Wed, 9 Oct 2019 23:40:17 +0000 (16:40 -0700)
committerIvan Frade <ifrade@google.com>
Tue, 15 Oct 2019 19:20:37 +0000 (12:20 -0700)
commit914e320ac6db23f7461dd997022d7799d0a4794d
treeabda7eca06a650dece0ef43dcaa4e35f6e2a6a50
parentbca00aa5f464e1bc3aa00d4b757554b54f35ddb2
ProtocolV2Parser: Introduce advertise sideband-all option

The flag enabling sideband-all is used in two places: in UploadPack
for advertisement and in the protocol parser to read it from the
request.

This leds to problems in distributed deployments where the two requests of
a fetch can go to different servers with different configurations.

Use the existing allowsidebandall to accept the sideband-all request
(and respond to it) and introduce a new "advertisesidebandall" to toggle
the advertising of the feature.

Change-Id: I892d541bc3f321606c89bad1d333b079dce6b5fa
Signed-off-by: Ivan Frade <ifrade@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransferConfig.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java