jgit/org.eclipse.jgit.http.test
Shawn O. Pearce b209671d04 Implement the no-done capability
Smart HTTP clients may request both multi_ack_detailed and no-done in
the same request to prevent the client from needing to send a "done"
line to the server in response to a server's "ACK %s ready".

For smart HTTP, this can save 1 full HTTP RPC in the fetch exchange,
improving overall latency when incrementally updating a client that
has not diverged very far from the remote repository.

Unfortuantely this capability cannot be enabled for the traditional
bi-directional connections.  multi_ack_detailed has the client sending
more "have" lines at the same time that the server is creating the
"ACK %s ready" and writing out the PACK stream, resulting in some race
conditions and/or deadlock, depending on how the pipe buffers are
implemented.  For very small updates, a server might actually be able
to send "ACK %s ready", then the PACK, and disconnect before the
client even finishes sending its first batch of "have" lines.  This
may cause the client to fail with a broken pipe exception.  To avoid
all of these potential problems, "no-done" is restricted only to the
smart HTTP variant of the protocol.

Change-Id: Ie0d0a39320202bc096fec2e97cb58e9efd061b2d
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2011-04-21 16:14:31 -07:00
..
.settings Run formatter on edited lines via save action 2010-08-26 12:33:09 -05:00
META-INF daemon: Use HTTP's resolver and factory pattern 2011-02-14 18:28:21 -08:00
tst/org/eclipse/jgit/http Implement the no-done capability 2011-04-21 16:14:31 -07:00
.classpath Make HTTP test project work in Eclipse 2010-01-23 11:29:25 -08:00
.gitignore Make HTTP test project work in Eclipse 2010-01-23 11:29:25 -08:00
.project Revert "Hide Maven target directories from Eclipse" 2010-08-28 09:50:50 +02:00
build.properties http.test: Add missing plugin.properties to build 2010-02-09 19:28:28 -08:00
org.eclipse.jgit.http--All-Tests.launch Convert all JGit unit tests to JUnit 4 2010-12-31 14:00:05 -08:00
plugin.properties Correct bundle, provider names to be consistent 2010-01-23 11:42:15 -08:00
pom.xml Qualify post 0.11 builds 2011-02-12 03:30:05 +01:00