From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fout-a5-smtp.messagingengine.com (fout-a5-smtp.messagingengine.com [103.168.172.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF3CE2EEE79 for ; Sat, 25 Jul 2026 16:20:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.148 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784996417; cv=none; b=Zkd9a8lWhQLYCESCZZbf4E6qkeWRQzEPmQlDzhKo402arKzDUkTm2CfakDl6q9VE+M+4uFuvXscxz8BUMLo10rgN4nzfEzmzG7RlG1rbALySuMJ1x+c9xLaaGRHq3BV8kv7+sNTWke3DrKLC//DDHhin96HXNZRI7e5nHNfYyJc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784996417; c=relaxed/simple; bh=gZUVAm4Z4yGU5lcPVTdYbxpBRTVGB8LxnF9y4U3AzOY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=u8DNW8rCYwtkSGNC1ZjdNmv2N5tbVq0dLIGjUGCV17JdPAT6tIWNrt72WXoT0eKzBc5sCOdFWzbXoGIg47LqWAsNioV4bBl8qZ7tw16BAwStLBBm0ykP92Vx3R9LF/neHn756n5q+IZyQ11Oh80sZRz0gT5judOcuGSIAWnlA1Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com; spf=pass smtp.mailfrom=pobox.com; dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b=jCYdlcMv; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=dr70qU+d; arc=none smtp.client-ip=103.168.172.148 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b="jCYdlcMv"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="dr70qU+d" Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51]) by mailfout.phl.internal (Postfix) with ESMTP id EAC96EC0116; Sat, 25 Jul 2026 12:20:14 -0400 (EDT) Received: from phl-frontend-01 ([10.202.2.160]) by phl-compute-11.internal (MEProxy); Sat, 25 Jul 2026 12:20:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1784996414; x=1785082814; bh=gZUVAm4Z4y GU5lcPVTdYbxpBRTVGB8LxnF9y4U3AzOY=; b=jCYdlcMv+EYA0fKBKNxPn/iFRK ALKj63eQT+66OO+2jT+NPmt1xQVq/VvFYhcr5T77UHZwyyLJaYGeIyTubP6FICFw jt+PnhyjfaxGN9vD2KHVfe5j/RrgnONnv9KsF22RrGQKX8dsNMplA0VLibHF5ejj TDXEMTyQiYn5ya2dbU66ZIg/9O1epB6v/kIKQRaalHjoYNOK13PIo5pG95nZbcs0 mghpKqkG34qs57L4MxxOXMWk5Y9HHE9UfF/t3Liuod3deweHYEXi5hhgBJLWOt1I dgbDuBHBFX2wpWN2/JR1SrjhCzzDfhzGT5gvMxbXZoJWZEy2TARDbjK65Dlg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1784996414; x=1785082814; bh=gZUVAm4Z4yGU5lcPVTd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3oZuiphLRFv6Z52nVqdETs1UfPk3+4A X-ME-Proxy: Feedback-ID: if26b431b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 25 Jul 2026 12:20:13 -0400 (EDT) From: Junio C Hamano To: Jeff King Cc: Ted Nyman , git@vger.kernel.org, me@ttaylorr.com, ps@pks.im, karthik.188@gmail.com, sandals@crustytoothpaste.net, avarab@gmail.com Subject: Re: [PATCH v3 0/3] packfile URIs: support concurrent downloads In-Reply-To: <20260725100251.GA1933232@coredump.intra.peff.net> (Jeff King's message of "Sat, 25 Jul 2026 06:02:51 -0400") References: <20260725090910.GA1438796@coredump.intra.peff.net> <20260725092154.GA1925154@coredump.intra.peff.net> <20260725100251.GA1933232@coredump.intra.peff.net> Date: Sat, 25 Jul 2026 09:20:12 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Jeff King writes: > I can't think of a synchronization point we could use here. We're > waiting on curl to have passed the bytes to fwrite() and for it to have > actually synced to disk. We either have to poll or modify http.c to > write "yes, we got some bytes!" to a fifo. Both are pretty gross. > > I wonder if we could just drop that "test -s" entirely. We'd _usually_ > see some bytes written before the second request starts. But it's OK if > we don't. It just means the test is working in the reverse order (the > second request may write its bytes first, and then the first one is the > one "overwriting" it). I.e., the two are symmetric from our perspective. Yeah, that sounds quite sensible. Thanks for digging.