From: Dima Zavin <dima@android.com>
To: git@vger.kernel.org
Cc: spearce@spearce.org, Dima Zavin <dima@android.com>
Subject: [PATCH] jgit: upload-pack: Force an fd flush after receiving flush pkt from client
Date: Mon, 16 Mar 2009 10:34:24 -0700 [thread overview]
Message-ID: <1237224864-15649-1-git-send-email-dima@android.com> (raw)
Signed-off-by: Dima Zavin <dima@android.com>
---
.../src/org/spearce/jgit/transport/UploadPack.java | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/org.spearce.jgit/src/org/spearce/jgit/transport/UploadPack.java b/org.spearce.jgit/src/org/spearce/jgit/transport/UploadPack.java
index 71acda1..80c154b 100644
--- a/org.spearce.jgit/src/org/spearce/jgit/transport/UploadPack.java
+++ b/org.spearce.jgit/src/org/spearce/jgit/transport/UploadPack.java
@@ -351,7 +351,7 @@ private void negotiate() throws IOException {
if (line.length() == 0) {
if (commonBase.isEmpty() || multiAck)
pckOut.writeString("NAK\n");
-
+ pckOut.flush();
} else if (line.startsWith("have ") && line.length() == 45) {
final ObjectId id = ObjectId.fromString(line.substring(5));
if (matchHave(id)) {
@@ -372,7 +372,6 @@ private void negotiate() throws IOException {
} else if (line.equals("done")) {
if (commonBase.isEmpty())
pckOut.writeString("NAK\n");
-
else if (multiAck)
pckOut.writeString("ACK " + last.name() + "\n");
break;
--
1.6.2
next reply other threads:[~2009-03-16 17:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-16 17:34 Dima Zavin [this message]
2009-03-16 20:05 ` [PATCH] jgit: upload-pack: Force an fd flush after receiving flush pkt from client Shawn O. Pearce
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1237224864-15649-1-git-send-email-dima@android.com \
--to=dima@android.com \
--cc=git@vger.kernel.org \
--cc=spearce@spearce.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).