From: Omar Polo Subject: Re: gotwebd crash To: Stefan Sperling Cc: gameoftrees@openbsd.org Date: Sun, 26 Nov 2023 13:37:25 +0100 On 2023/11/26 13:32:46 +0100, Stefan Sperling wrote: > Here is an alternative fix, with two improvements: > > We can use the 'objects/pack' directory timestamp as a state flag. > > We should retry the entire loop if pack files have changed. Otherwise > we might end up trying to open up a pack file which has been deleted, > or we might miss a new pack file which has been added. > I've set an arbitrary limit on the number of retries to avoid endless > looping caused by constant concurrent modifications. ok op@