Permalink
Commits on Sep 21, 2017
  1. doc: documented the shdict:ttl() and shdict:expire() API functions.

    thibaultcha committed with agentzh Sep 21, 2017
    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
Commits on Sep 20, 2017
  1. feature: added pure C functions for shdict:ttl() and shdict:expire() …

    thibaultcha committed with agentzh Aug 31, 2017
    …API functions.
    
    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
Commits on Sep 19, 2017
  1. bugfix: *_by_lua_block might break nginx config dump (-T switch).

    lonerr committed with agentzh Sep 19, 2017
    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
Commits on Sep 13, 2017
  1. bugfix: segmentation faults might happen when pipelined http requests…

    agentzh committed Sep 13, 2017
    … are used in the downsteram connection. thanks Gao Yan for the report.
Commits on Aug 24, 2017
  1. bugfix: tcpsock:connect(): when the nginx resolver's send() immediate…

    root committed with agentzh Aug 19, 2017
    …ly fails without yielding, we didn't clean up the coroutine ctx state properly.
    
    This might lead to segmentation faults.
    
    thanks xiaocang for the discovery.
    
    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
Commits on Aug 22, 2017
  1. bugfix: tcpsock: settimeout/settimeouts: throw an error when the time…

    spacewander committed with agentzh Aug 22, 2017
    …out argument values overflow.
    
    Here we only support timeout not greater than max value of a 32 bits integer
    to avoid overflow. Supporting too large timeout values doesn't make sense anyway.
    
    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
Commits on Aug 18, 2017
  1. doc: minor fixes.

    agentzh committed Aug 18, 2017
Commits on Aug 10, 2017
Commits on Aug 9, 2017
  1. bumped version to 0.10.10.

    agentzh committed Aug 9, 2017
Commits on Aug 8, 2017
Commits on Aug 7, 2017
Commits on Aug 1, 2017
  1. Revert "bugfix: ngx.escape_uri: we did not escape URI reserved chars. #…

    spacewander committed with agentzh Jul 31, 2017
    …1124"
    
    Commit f170505 breaks the compatibility
    with RFC 3986. Here is two reasons:
    1. Quote from RFC 3986 Section 2.2:
    > A subset of the reserved characters (gen-delims) is used as
    delimiters of the generic URI components described in Section 3
    
    Note that RFC 3986 says 'a subset of the reserved characters
    (gen-delims)', not all the reserved characters. The characters escaped
    in that commit are 'sub-delims'. They are not required to be escaped
    according to Section 2.2.
    
    2. Refer to RFC 3986 "Appendix A.  Collected ABNF for URI", sub-delims
    could be used as part of query and other components. This use case shows
    that sub-delims are valid in some component of URI. Therefore, it would
    be better if we don't escape them for URI component.
    
    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
Commits on Jul 27, 2017
  1. bugfix: ngx.escape_uri: we did not escape URI reserved chars. #1124

    Henry Lee committed with agentzh Jul 27, 2017
    ngx.escape_uri should also escape RFC 3986 section 2.2 Reserved Characters.
    
    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
Commits on Jul 19, 2017
  1. doc: fixed a typo in a code example for `ngx.re.match`.

    moonming committed with agentzh Jul 19, 2017
    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
Commits on Jul 17, 2017
  1. bugfix: segmentation fault might happen when a stale read event happe…

    agentzh committed Jul 17, 2017
    …ns after the downstream cosocket object is closed. thanks Dejiang Zhu for the report.
  2. refactor: removed the duplicate C function decelaration for ngx_http_…

    agentzh committed Jul 17, 2017
    …lua_socket_read_handler.
  3. tests: added a test case to make sure $proxy_add_x_forwarded_for is a…

    spacewander committed with agentzh Jul 17, 2017
    …ccessible on the Lua land.
    
    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
Commits on Jul 12, 2017
  1. bugfix: ngx.semaphore: when nginx workers exit, the harmless error me…

    membphis committed with agentzh Jul 10, 2017
    …ssage "semaphore gc wait queue is not empty" might be logged.
    
    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
Commits on Jul 10, 2017
  1. ocsp: removed a useless line of code, which unbreak the libressl buil…

    agentzh committed Jul 10, 2017
    …d. thanks Kyra Zimmer for the original patch.
Commits on Jul 6, 2017
  1. tests: skipped the test case for lua_code_cache off + ngx.timer.every…

    agentzh committed Jul 6, 2017
    … in the "check leak" test mode since there is a known memory leak in this case.
Commits on Jul 4, 2017
  1. bugfix: the fake requests/connections might leak when memory allocati…

    skyever committed with agentzh Jun 29, 2017
    …ons fail.
    
    as discussed in #1098.
    
    Signed-off-by: skyever <i@kill9.cn>
    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
  2. minor coding style fixes.

    agentzh committed Jul 4, 2017