aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackConnection.java
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-01-06 10:21:05 -0800
committerShawn O. Pearce <spearce@spearce.org>2010-01-12 12:01:28 -0800
commit8c836c6f21a07897faae41c6132ba49e66025328 (patch)
treeb3de30c12ebf492af3516c9f1df6d4bea123a72c /org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackConnection.java
parent2e5214462e7f7d93ff39b522c2343105443393c9 (diff)
downloadjgit-8c836c6f21a07897faae41c6132ba49e66025328.tar.gz
jgit-8c836c6f21a07897faae41c6132ba49e66025328.zip
client side smart HTTP
During fetch over http:// clients now try to take advantage of the info/refs?service=git-upload-pack URL to determine if the remote side will support a standard upload-pack command stream. If so each block of 32 have lines is sent in one POST request, prefixed by all of the 'want' lines and any previously discovered common bases as 'have' lines. During push over http:// clients now try to take advantage of the info/refs?service=git-receive-pack URL to determine if the remote side will support a standard receive-pack command stream. If so, commands are sent along with their pack in a single HTTP POST request. Bug: 291002 Change-Id: I8c69b16ac15c442e1a4c3bd60b4ea1a47882b851 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackConnection.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackConnection.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackConnection.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackConnection.java
index bd86ec0472..90634d207a 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackConnection.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackConnection.java
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2009, Constantine Plotnikov <constantine.plotnikov@gmail.com>
- * Copyright (C) 2008-2009, Google Inc.
+ * Copyright (C) 2008-2010, Google Inc.
* Copyright (C) 2008, Marek Zawirski <marek.zawirski@gmail.com>
* Copyright (C) 2008, Robin Rosenberg <robin.rosenberg@dewire.com>
* Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org>
@@ -110,6 +110,9 @@ abstract class BasePackConnection extends BaseConnection {
/** Send {@link PacketLineOut#end()} before closing {@link #out}? */
protected boolean outNeedsEnd;
+ /** True if this is a stateless RPC connection. */
+ protected boolean statelessRPC;
+
/** Capability tokens advertised by the remote side. */
private final Set<String> remoteCapablities = new HashSet<String>();
@@ -117,7 +120,7 @@ abstract class BasePackConnection extends BaseConnection {
protected final Set<ObjectId> additionalHaves = new HashSet<ObjectId>();
BasePackConnection(final PackTransport packTransport) {
- transport = (Transport)packTransport;
+ transport = (Transport) packTransport;
local = transport.local;
uri = transport.uri;
}