[PATCH] Core: added const qualifier to ngx_parse_http_time argument

2018-01-05 Thread Zexuan Luo
# HG changeset patch # User spacewander # Date 1515142886 -28800 # Fri Jan 05 17:01:26 2018 +0800 # Node ID 17d6674fe60421961903d913831d7d19b351bd11 # Parent 6d2e92acb013224e6ef2c71c9e61ab07f0b03271 Core: added const qualifier to ngx_parse_http_time argument 'ngx_parse_http_time(u_char *val

[PATCH] Improved code readablity of ngx_cache_manager_process_cycle.

2018-04-04 Thread Zexuan Luo
# HG changeset patch # User spacewander # Date 1522902794 -28800 # Thu Apr 05 12:33:14 2018 +0800 # Branch ident # Node ID e0834ca20c9c68c4f0728f85efb3651732134ee2 # Parent d4cc2edb4ff8391d0c7419e91e6fcc988c510654 Improved code readablity of ngx_cache_manager_process_cycle. diff -r d4cc2edb

[PATCH] Events: closed unused listening fds in worker processes.

2019-04-18 Thread Zexuan Luo
# HG changeset patch # User spacewander # Date 181540 -28800 # Thu Apr 18 17:59:00 2019 +0800 # Branch ident # Node ID 4fb5603514f2d324c50cb7e12c6ed0dc8935de0f # Parent e0834ca20c9c68c4f0728f85efb3651732134ee2 Events: closed unused listening fds in worker processes. It doesn't affect th

Re: [PATCH] Events: closed unused listening fds in worker processes.

2019-04-18 Thread Zexuan Luo
ion is too scary to the system administrator. Zexuan Luo 于2019年4月18日周四 下午6:13写道: > > # HG changeset patch > # User spacewander > # Date 181540 -28800 > # Thu Apr 18 17:59:00 2019 +0800 > # Branch ident > # Node ID 4fb5603514f2d324c50c

[PATCH] Keep remote port unchanged if real address doesn't contain a port.

2020-01-20 Thread Zexuan Luo
# HG changeset patch # User spacewander # Date 1579523127 -28800 # Mon Jan 20 20:25:27 2020 +0800 # Branch ident # Node ID 86dbfc59e9c01608244c4fdc0d9a87fd9d330648 # Parent 4fb5603514f2d324c50cb7e12c6ed0dc8935de0f Keep remote port unchanged if real address doesn't contain a port. Previously

Inconsistent time measurement in Nginx

2021-09-27 Thread Zexuan Luo
Hi, Nginx developers: Currently, the request_time uses ngx_timeofday to get the time, which finally will call gettimeofday. Meanwhile, the upstream_x_time series uses ngx_current_msec to calculate the time, which finally will call ngx_monotonic_time. On Linux, the gettimeofday will call clock_get

[PATCH] Core: copy a NULL string in memcpy is undefined behavior

2022-03-25 Thread Zexuan Luo
# HG changeset patch # User Zexuan Luo # Date 1648192098 -28800 # Fri Mar 25 15:08:18 2022 +0800 # Node ID a94f838a469ed158e421cbc8187db6ae79153921 # Parent a736a7a613ea6e182ff86fbadcb98bb0f8891c0b Core: copy a NULL string in memcpy is undefined behavior diff -r a736a7a613ea -r