Re: rpki-client stop all repo fetching a bit before the timeout

2022-09-02 Thread Claudio Jeker
On Fri, Sep 02, 2022 at 09:50:06PM +, Job Snijders wrote: > Hi Claudio, > > This looks mostly OK, just a few nit: > > On Fri, Sep 02, 2022 at 10:02:33PM +0200, Claudio Jeker wrote: > > @@ -1223,8 +1224,26 @@ repo_check_timeout(int timeout) > > { > > struct repo *rp; > > time_t

Re: rpki-client stop all repo fetching a bit before the timeout

2022-09-02 Thread Job Snijders
Hi Claudio, This looks mostly OK, just a few nit: On Fri, Sep 02, 2022 at 10:02:33PM +0200, Claudio Jeker wrote: > @@ -1223,8 +1224,26 @@ repo_check_timeout(int timeout) > { > struct repo *rp; > time_t now; > + int diff; > > now = getmonotime();

Re: rpki-client stop all repo fetching a bit before the timeout

2022-09-02 Thread Sebastian Benoit
Claudio Jeker(cje...@diehard.n-r-g.com) on 2022.09.02 22:02:33 +0200: > Lets try to finish work by stopping all syncs and fall back to what we > have in cache after 7/8 of the timeout (timeout - 1/2 repo_timeout). > This way we still have 1/8 of time to finish the calculation and produce > output.

Re: rpki-client stop all repo fetching a bit before the timeout

2022-09-02 Thread Theo Buehler
On Fri, Sep 02, 2022 at 10:02:33PM +0200, Claudio Jeker wrote: > Lets try to finish work by stopping all syncs and fall back to what we > have in cache after 7/8 of the timeout (timeout - 1/2 repo_timeout). > This way we still have 1/8 of time to finish the calculation and produce > output. > > Te

rpki-client stop all repo fetching a bit before the timeout

2022-09-02 Thread Claudio Jeker
Lets try to finish work by stopping all syncs and fall back to what we have in cache after 7/8 of the timeout (timeout - 1/2 repo_timeout). This way we still have 1/8 of time to finish the calculation and produce output. Tested this diff by setting the deadline to fire after 60sec. -- :wq Claudio