Welcome! Log In Create A New Profile

Advanced

Re: patch for fixing timouts #189

Maxim Dounin
February 21, 2018 12:48PM
Hello!

On Tue, Feb 20, 2018 at 08:51:08PM +0100, Felix Ruess wrote:

> quite a while ago someone else already found the problem that the timeouts
> use system time rather than a monotonic clock:
> https://trac.nginx.org/nginx/ticket/189
>
> I updated/fixed the patch [1] there a while ago already and have this
> successfully deployed on ~50 devices since then.
>
> Any chance to get this included now? Or is there still something missing?

The patch in question was never submitted to the mailing list[1],
and hence was never properly reviewed and/or considered for
inclusion.

Overall, I think the patch is somewhat overcomplicated. Also, the
"monotonic_timers" configuration directive introduced by the patch
seems to behave wrong if changed during a reconfiguration:
ngx_current_msec values can be saved into various shared memory
zones (e.g., limit_req will do it), leading to incorrect results
if the directive is changed.

Rather, we may want to use monotonic timers unconditionally, at
least if a fast variant is available. I'll take a look as time
permits.

[1] http://nginx.org/en/docs/contributing_changes.html

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

patch for fixing timouts #189

Felix Ruess 573 February 20, 2018 02:52PM

Re: patch for fixing timouts #189

Maxim Dounin 336 February 21, 2018 12:48PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 203
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready