git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v3] crendential-store: use timeout when locking file

From
Jeff King <peff@peff.net>
Date
Nov 26, 2020, 07:37 UTC
Message-ID
<X79bUrreRkpiiorU@coredump.intra.peff.net>
In-Reply-To
<20201125183123.47praa6hcgrgrib4@safonso-t430>
On Wed, Nov 25, 2020 at 06:31:23PM +0000, Simão Afonso wrote:
Show 14 quoted lines
> When holding the lock for rewriting the credential file, use a timeout
> to avoid race conditions when the credentials file needs to be updated
> in parallel.
> 
> An example would be doing `fetch --all` on a repository with several
> remotes that need credentials, using parallel fetching.
> 
> The timeout can be configured using "credentialStore.lockTimeoutMS",
> defaulting to 1 second.
> 
> Signed-off-by: Simão Afonso <simao.afonso@powertools-tech.com>
> ---
> 
> lockTimeoutMS sounds like the consensual name, implemented.
Thanks, this version looks good to me.
-Peff
Previous: Simão Afonso
Message 7 of 7 in “credential-store: use timeout when locking file”
  1. credential-store: use timeout when locking fileSimão Afonso, Oct 30, 2020
  2. Junio C HamanoOct 30, 2020
  3. crendential-store: use timeout when locking fileSimão Afonso, Nov 24, 2020
  4. Junio C HamanoNov 24, 2020
  5. Jeff KingNov 25, 2020
  6. crendential-store: use timeout when locking fileSimão Afonso, Nov 25, 2020
  7. Jeff KingNov 26, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.