🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #3047

Re: [Outreachy PATCH v2] credential-store: add lockTimeout config option

#3047
From: Junio C Hamano
Date: Thu, 12 Nov 2026 21:10
32 lines
13877 bytes
Okhuomon Ajayi <okhuomonajayi54@gmail.com> writes:

> Support credentialStore.lockTimeout as the preferred setting
> for credential lock retries, retaining lockTimeoutMS as a
> deprecated alias.
>
> Signed-off-by: Okhuomon Ajayi <okhuomonajayi54@gmail.com>

Hmph, does this change even make sense?

Sure, there are many variables whose name ends with "timeout".  But
are they all measured in milliseconds?  Or are some measured in
seconds and others measured in milliseconds?  If the latter, this
moves us in the wrong direction, no?  If the time unit is not
uniform across variables, it would be more sensible to give them
names with unit so the users would immediately know when they see

    cs.locktimeoutMilliSeconds = 500

that the wait will be subseconds.

On the other hand, if we are committed that all timeouts are
measured in milliseconds, such a unit suffix does not buy us much,
and better be dropped.

Anybody who reads your proposed log message above in the future will
ask these questions, and a log message that forces them to ask such
questions needs more work.  State why this patch decides to do this,
and do not say "somebody told me to make this change".  Your readers
want to hear why you think this change makes sense, and be
convinced.
Technical Details
Message-ID: <xmqqeccphi2p.fsf@gitster.g>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-75334-linux-kernel-git=dewy.ru
References: <20261014232739.23021-1-okhuomonajayi54@gmail.com> <20261016212216.58000-1-okhuomonajayi54@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-75334-linux-kernel-git=dewy.ru
From: gitster@pobox.com (Junio C Hamano)
Newsgroups: linux.kernel.git
Subject: Re: [Outreachy PATCH v2] credential-store: add lockTimeout config
 option
Date: Thu, 12 Nov 2026 13:10:22 -0800
Organization: Usenet Network
Message-ID: <xmqqeccphi2p.fsf@gitster.g>
References: <20261014232739.23021-1-okhuomonajayi54@gmail.com>
	<20261016212216.58000-1-okhuomonajayi54@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: usenet.network;
	logging-data="1233803"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:i+mo7H6HsIgPIEKcikB5ThM+RIQ= sha256:5/JwR3gg5Sh0xuxf74q/2pkE9B2Ewq+vIdNBlNAZRoo=
	sha1:EsTM0STiMFCGdcNO7uq2o90XC7U= sha256:cNdu4RpxSSS8uO2dlUg+yD0uJY68aVnA2UhQo+CB5/M=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 7031E11443F; Fri, 13 Nov 2026 05:30:23 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=pobox.com header.b=H5bfAacf; dkim=pass (2048-bit key)
	header.d=messagingengine.com header.b=k8o0sCXY
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id M9W4KffGwUfr;
	Fri, 13 Nov 2026 05:30:19 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-75334-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=pobox.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id EC2DD11443B; Fri, 13 Nov 2026 05:30:05 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id CACC518E4D9; Thu, 12 Nov 2026 21:10:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794517831;
	b=XhapVdzmEBWBEKPQJzcRsVStoDcblLZzxU7ir64l7aSxKfBumJj7GKBXK0/g86OjDAPZ
	 Zdshj5+UFISIrGmCSwVkEljiDcm59esiNaO/0c21FHyGmdHLRaZfyshburtTc27oPaOIH
	 gHybBA1H4aGKhd2z7XjFC+R170jzYtRvXquoO1vtgCNOMBn4dc6DkpAOey5HTmllm+pJq
	 xiXHHqZjE9tSbBtBon8GJeUUKGQaOSduPPKHvRQ2/+cJ4zXSqR/46k7mDtmSPmaFtWpIX
	 0dKYrct7KSwnF5trD9pLSq1Gw9L+mINGbCFXwab3IGpcJ3TPGQpbmekfrYXvMvv01IQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794517831;
	h=X-Original-To:Received:DMARC-Filter:Received:Received:DKIM-Signature:
	 DKIM-Signature:X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:
	 Message-Instance:X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:
	 X-ME-Proxy:Feedback-ID:Received:From:To:Cc:Subject:In-Reply-To:
	 References:Date:Message-ID:User-Agent:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type;
	bh=v1VyTdwBRtGzmULI+dOj1TFmkCjdP2Tcpu9mOSz2HbE=;
	b=YrsQyRqCYmGJgDpr5XPVZ9ldqqLEV10srja9jrCASkmHC9Yi0C6BlmP6m7/9mhe0MkuK
	 VNZ3Eseu8l1zQn8B+WcdVve235EH4GS45XO/2T6ugVB4S8j14jDZB/KuJjaRym/MNj1BF
	 XTK4v7I+5bqpL2E9f5YF4YBYLnBPdq7lHnJVZ7cdgQpeLYsUxVGn1cjAPA1gDGyZOX8gr
	 C7i27pVHwNozxm0JKLYwAZ3qMKaJBlTNnnX8JpJvh1e1CEa7mWjBQC8Y3A2KhyE7nULmJ
	 mVac3PXO/mE6Dx082nOd0HT2WQO+DNB51rJA9UCnCzvq5Iff36djqmlkqBKRdt7qHMg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=H5bfAacf;
	dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=k8o0sCXY;
	dmarc=pass header.from=pobox.com;
	spf=pass smtp.mailfrom=pobox.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 69C55606A330;
	Thu, 12 Nov 2026 21:10:31 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=H5bfAacf;
	dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=k8o0sCXY
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=202.12.124.146
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794517825;
	b=NVKoHxqkhbTKEtrH8lOlVLWC5Q4hGge7ERE3GKZKYwvfkFSaWky4iyk8r9eFQB7X19tk
	 bJnOcvTkRnRm5T3Kbl8zNlMxixdVxbRL1dhOJ/lcihjCKsekIE5Sie8hwvaoNDI+nd/Fq
	 Ggn1ZnSkG4GJD3ATGcoB45JDgPEtjobakSxylxO+sYLKiDb5Nq30gtVClDzUnhJ3uamRH
	 9i3U76Tf4zeAVxgvzhkiJlbCGkv2+XXN+pj6Z1kE23gzncurg1Z7TjGzYsUNLKG8u5TTe
	 2xPJZovcTbS9wRvsBCIj8DZrLs7bXgrxSfG3dWNhflMgqVTICHAZSHoZFbHLjQ75GGg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794517825;
	h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature:
	 X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance:
	 X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:
	 Received:From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:
	 User-Agent:MIME-Version:Content-Type;
	bh=v1VyTdwBRtGzmULI+dOj1TFmkCjdP2Tcpu9mOSz2HbE=;
	b=Ub+rIyZpdvWNN5uNaMXoFZUIZ4KBvuoj3f5rYknxYRgOjBhjYE6Wil50QWbbyFNXV7vH
	 nWU7Jc3w8wTkdk8+L/aKxtseCtNYsRJRuPFAeF1D5xm7ftc30qEtNGquc2gj2uUtEEoo2
	 JEwt0lccKHFxvjPTFlxGrl2S4+TrRf84OUMOFQjZDUFzP3tV7UJL4sx71E9Z7JVXZ/Lvu
	 +cZ2xDfeWA+zQvkWG/KA9VUbbsYzpKG0CRaSeFcqAPYGRfL8/+cTeYaSUIDaZLqrA5UPv
	 15zJZIVvSjTKn+66bOwl3qnK6Wx70WfwEregu46hhS/4vtMDbAWAPcDFgqlxe7+adSg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=pobox.com;
	spf=pass smtp.mailfrom=pobox.com;
	dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=H5bfAacf;
	dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=k8o0sCXY;
	arc=none smtp.remote-ip=202.12.124.146
X-Received: from fout-b3-smtp.messagingengine.com (fout-b3-smtp.messagingengine.com [202.12.124.146])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CEF7606A332
	for <git@vger.kernel.org>; Thu, 12 Nov 2026 21:10:24 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2CEF7606A332
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com
X-Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51])
	by mailfout.stl.internal (Postfix) with ESMTP id 806091D00693
	for <git@vger.kernel.org>; Thu, 12 Nov 2026 16:10:24 -0500 (EST)
X-Received: from phl-frontend-02 ([10.202.2.161])
  by phl-compute-11.internal (MEProxy); Thu, 12 Nov 2026 16:10:24 -0500
X-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=fm2; t=1794517824; x=1794604224; bh=v1VyTdwBRt
	GzmULI+dOj1TFmkCjdP2Tcpu9mOSz2HbE=; b=H5bfAacfCMEksNAQSAgvy0ogFB
	XVhBMzu63cIBVFeTBbID17RQlkkPTwznNuM9V080kwA8g6mb9T7/pnihVWhv3JRf
	+ik5DRjvOO0KwGcrZNsx4wejrKYZVdrhNuEFaZ9m8B55jGWq2Q3VxtOkfvvWB7wO
	Efc7qsCUlKjiaSfcZhEzufGZuaKtpcc88BfWUqOj4NjEOhythbH5CkexmZ5IPv9z
	LGG6RqrQ8kgSyibtCubL6QUhXsXoIxdJWQM1pNQbVcfp1gqYFcmR+pS0fRxKSnQq
	27gEDGv0JBYY6vOcNr2FlOpxbhuvU2fBOBNnzvDMB947h1Y9gLiElZrEm20g==
X-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=fm3; t=
	1794517824; x=1794604224; bh=v1VyTdwBRtGzmULI+dOj1TFmkCjdP2Tcpu9
	mOSz2HbE=; b=k8o0sCXYQKmGe8Fcl2E8vGGBiNZ3nrDIVagB50tpGNZTzRdW18c
	wsmjwDPUcaZfX+NcXaZSmwaN8sx9oYa+HMg4KR5wE5LuM1tFcTHsmdNS5n4dAYst
	heiN733TUk6AEq23alEPVXaLlFJlALQ5tgfmvPfMBBK+dtX1ozvFidVUMLCcwNA4
	7TDt+c0tOhxiGhihZzY8lerM68FZv76I+zJYrSIxEmCBlyHL+oHlJQYRiMjIi+7/
	0zDwsniP+0yq3Slv5G/slS5FQZyCddRVwc5mA4lZEN5+PaFrCJPUL9kXV2tTUZ6f
	6UM+egz2GHEN1hQ1io7guI+dWJdlqwGMUww==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09;
	repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox;
	action=sign d=pobox.com a=rsa-sha256;
X-DKIM2-Signature: i=1; m=1; t=1794517824; d=pobox.com;
	mf=PGdpdHN0ZXJAcG9ib3guY29tPg==;
	rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+;
	s=fm2:rsa-sha256:lnRRj5F5PMAC61x4AC3/x0NEp/XgSbaJlW03gehzqVOrUJ5
	TIngbwRsG7yiLmcM4R6aBJT9L70hK19uWJ+1EjMngeRCu6KoUFDdtsVfB4BB4Ewp
	p78gI9d6rmJy9lKeXVyen13IcVszqN3je9Kri19dvq+N5EZC8bXk2sk1Syw5wxy0
	qoZMk63F6Ryf/1ttfmrx+oBRn+Q/YeEFGshVrjNoCBzG7c3b3MlaxSlpzT4xnrYp
	q79xlKH9NE7oYbtoG0GgyyzAvOD3KcTyXQkauxoGQbiypP9BqfSocCqwiMo6wTLi
	EmK6wk03AxiljAuLcz9MBxivYqOKc0+TfM0wNgA==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09;
	repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox;
	action=mi-m=1; hc=12;
	hn=cc,content-type,date,feedback-id,from,in-reply-to,message-id,
	mime-version,references,subject,to,user-agent;
X-Message-Instance: m=1; h=sha256:f2MIrzVmG+D654KQptfBMQnw5a11ieOhp95B9Lu0jBQ=:RwzPx5WwIoMDuQAEvhvqWHyTOfgAl7JSsgagX+twnkY=;
X-ME-Sender: <xms:QCv2auTizI9x3TUClepLuJV18wiKA2gA_jq8LTSTdKfBjNmhmfNoHg>
    <xme:QCv2amB3Ey-qaW1RLSc1nnUrKKezpAcLeGkndgu3I2ou_KLFXuig9GWUn7WuZ9dSN
    tnukyaFuKPxCkmOKHBHv1sjEOYA0TkMCjtfArG2n1jMS2loCQBP4pI>
X-ME-Received: <xmr:QCv2auHvTcAi9jsLHxOAvFEjfryVQeQvQvgbllAAJEtnIOFal0e2KgnEkNeiRlts4gBFLYMnbbDfzibxPJ0VKuAgGostWEIgtSl3>
X-ME-Proxy-Cause: dmFkZTEA4rsTQ1O/rpXThKIXB9+v6vi3SKpntM6mioICPb+OPKZWCtFUwYmmuzofYnXVFr
    P/hVZmKuihWo0/4uJtxz2x4UQwqn1d45nFdWC0BZR87JqyjdARPH5UnKSTb4q75A25WKFD
    6qbugvhG6NIyVmqTEybL5hD6Eb8mBBX/NnYsG8bmVq4FsJT3FaNNgmEBLmnc92j0A1+38C
    Odh4S7R4dCpv3tnG0Sh867RIXSbMFbCsug/o8nNh4NFwFDY7fhjmjvJgfMH9Wlyei2H+aQ
    Bdn4uF8YEDM1vSTMrvHLlzvz2grqPGDoWqspespGj5XZK0Sq+jENJrGRJ01Mm9jX/Gq6nC
    KLF3SILrbLyBuisQkT8+vxXmNgM/AH04NS4PkDrlRtwRlYuWCKDcVR66bZQ6uGkU10WMrx
    8YtGAMgW/+5P7fW38XgjSUjZ9TkUhI2sVDqLHnFdqCoOoe7Vm0na46zj08No+MpOkWfQIQ
    LjYY87MFStDHNBh4HJHlscXt2gnNA7mcaKcU6/+zLMhyoFRUq+024ZxooJyt6glkq4LFcS
    L8bMf/XuHUu3zaKw50og1TYNOavV8E+F5vEx4iTgdkL1BK9pru9vE3HrHDlBD/JIIUdwni
    YSwD67m4k4jZ7/1Mu/SY2Hr5KPZbfC92ydelL+axNx7aHiFY6YXpOp9r4Kxg
X-ME-Proxy: <xmx:QCv2agC3zrZVhvbO2BE0z9E66KdIpAvOHm2HSVJzMzJ0qNsYfD3xdg>
    <xmx:QCv2amW_Iopmb27BlMF1Tq3pIEBKSOC4ct3FG4ya7swLnWxpVn0OvQ>
    <xmx:QCv2asqbKWI-9E_Dpzdfui3l6eJTxluNL3xL8wxj9L4dI9ooKGRpLg>
    <xmx:QCv2aqQswWvRcOXM5clANrRdT9dua2cwOwfXAtJiHCbi_3A5LJegHw>
    <xmx:QCv2ao0wF-q8bif0UmZrcC1yf-dAiT36lLK8GsQUNhzPqdUQoYNZf_a3>
X-Feedback-ID: if26b431b:Fastmail
X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 12 Nov 2026 16:10:23 -0500 (EST)
X-Cc: git@vger.kernel.org,  christian.couder@gmail.com,
  usmanakinyemi202@gmail.com,  siddharthasthana31@gmail.com,
  kaartic.sivaraam@gmail.com
X-In-Reply-To: <20261016212216.58000-1-okhuomonajayi54@gmail.com> (Okhuomon
	Ajayi's message of "Fri, 16 Oct 2026 22:22:16 +0100")
X-User-Agent: Gnus/5.13 (Gnus v5.13)
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list