Re: Question about ngx_handle_write_event

2019-07-02 Thread Maxim Dounin
Hello! On Mon, Jul 01, 2019 at 07:23:11PM +, Eran Kornblau wrote: > Something is unclear to me regarding the use of this function, the > development guide says - > "the functions ngx_handle_read_event(rev, flags) and > ngx_handle_write_event(wev, lowat) > must be called after handling an I/

Re: effect of bcrypt hash $cost on HTTP Basic authentication's login performance?

2019-07-02 Thread Maxim Dounin
Hello! On Sat, Jun 29, 2019 at 09:48:01AM -0700, PGNet Dev wrote: > When generating hashed data for "HTTP Basic" login auth > protection, using bcrypt as the hash algorithm, one can vary the > resultant hash strength by varying specify bcrypt's $cost, e.g. [...] > For site login usage, does *

Re: Bug in ngx_http_slice_filter_module ngx_http_slice_parse_content_range function

2019-07-02 Thread Carey Gister
Hi Maxim, Thank you. By "production version" I meant the current release version, which if I recall correctly, is 1.17.1. Ok. So then you recommend I copy the code that processes the If-Range header to determine if the If-Range is valid? I can then use those functions to determine the extent o

Re: Bug in ngx_http_slice_filter_module ngx_http_slice_parse_content_range function

2019-07-02 Thread Maxim Dounin
Hello! On Mon, Jul 01, 2019 at 10:07:41PM +, Carey Gister wrote: > Thank you for your reply. My use case is as follows: > > After the slice header filter calls ngx_http_next_header_filter > the contents of the request headers_out fields will be modified > if an If-Range header is valid.

[njs] Refactored functions inlining.

2019-07-02 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/775430ca2cab branches: changeset: 1026:775430ca2cab user: Dmitry Volyntsev date: Tue Jul 02 21:37:10 2019 +0300 description: Refactored functions inlining. Allowing compiler to decide whether inline a function or not by removing most of nxt_noin

[PATCH] Gzip: use zlib to write header and trailer

2019-07-02 Thread Ilya Leoshkevich
When nginx is used with zlib patched with [1], which provides integration with the future IBM Z hardware deflate acceleration, it ends up computing CRC32 twice: one time in hardware, which always does this, and one time in software by explicitly calling crc32(). crc32() calls were added in commits

[njs] Fixed String.prototype.replace() for '$0' replacement string.

2019-07-02 Thread Alexander Borisov
details: https://hg.nginx.org/njs/rev/0f2d18a5eed3 branches: changeset: 1025:0f2d18a5eed3 user: Alexander Borisov date: Tue Jul 02 18:14:47 2019 +0300 description: Fixed String.prototype.replace() for '$0' replacement string. For example: '0'.replace(/^/g, "$0") diffstat: njs/njs

[njs] Reduced nesting level of branches in njs_string_replace_regexp().

2019-07-02 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/4a0f6ff54f88 branches: changeset: 1024:4a0f6ff54f88 user: Valentin Bartenev date: Mon Jul 01 22:44:14 2019 +0300 description: Reduced nesting level of branches in njs_string_replace_regexp(). No functional changes. diffstat: njs/njs_string.c

[njs] Crypto: zeroing the context after usage.

2019-07-02 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/7a8584306099 branches: changeset: 1023:7a8584306099 user: David Carlier date: Tue Jun 18 15:02:57 2019 + description: Crypto: zeroing the context after usage. Regardless of the compiler optimisation. This closes #181 pull request. diffstat