Yichun Zhang (agentzh)
|
2f65b0fff0
|
bugfix: we might return the wrong shm zone in the public C API function ngx_http_lua_find_zone(). thanks qlee001 for the report in #589.
|
2015-10-30 14:57:05 +08:00 |
Yichun Zhang (agentzh)
|
311539270b
|
tests: removed the useless "use lib" directives from the Perl test files. thanks Markus Linnala for the report in #464.
|
2015-10-08 17:13:16 +08:00 |
Yichun Zhang (agentzh)
|
a05e1eb546
|
bugfix: use of shared dicts resulted in (unwanted) registrations of shared dict metatables on all the lightuserdata in the Lua space. thanks helloyi for the report in #548 and patch in #557.
|
2015-09-03 17:09:38 +08:00 |
Yichun Zhang (agentzh)
|
d8c45b8725
|
feature: make use of the new shm API in nginx 1.5.13+ to suppress the "no memory" error logging when the shared dicts run out of memory.
|
2014-05-03 13:35:36 -07:00 |
Yichun Zhang (agentzh)
|
01f3cef146
|
reindexed the test file 043-shdict.t.
|
2014-01-04 22:03:31 -08:00 |
Yichun Zhang (agentzh)
|
f6d309ffd8
|
shdict: improved the error handling a bit and also added more (passing) tests.
|
2014-01-04 21:56:52 -08:00 |
Yichun Zhang (agentzh)
|
a4323aab82
|
shdict: improved the error handling a bit and also increased the tests' code coverage.
|
2014-01-04 19:58:30 -08:00 |
Yichun Zhang (agentzh)
|
04a7a2cca8
|
use Test::Nginx::Socket::Lua from the test-nginx project in our test suite.
|
2013-12-05 14:46:51 -08:00 |
Yichun Zhang (agentzh)
|
3e63ceba3c
|
feature: added pure C API for FFI-based implementations for storing operations in the shared dictionaries.
|
2013-11-11 21:15:41 -08:00 |
Yichun Zhang (agentzh)
|
b6d19752e3
|
feature: added new FFI C API ngx_http_lua_ffi_shdict_incr for shdict:incr().
|
2013-09-01 19:57:24 -07:00 |
Yichun Zhang (agentzh)
|
e7f3b02645
|
feature: added new FFI C API for shdict:get(). also we use double instead of lua_Number when storing Lua numbers into shdict.
|
2013-09-01 00:41:50 -07:00 |
Yichun Zhang (agentzh)
|
c7237efd8a
|
made the test for shdict:get_stale less possible to fail.
|
2013-08-04 00:44:36 -07:00 |
Yichun Zhang (agentzh)
|
124f50fd46
|
feature: added new method "get_stale" to shared dict objects, which returns the value (if not freed yet) even if the key has already expired. thanks Matthieu Tourne for the patch in #249.
|
2013-08-01 17:57:17 -07:00 |
agentzh (Yichun Zhang)
|
f20bc66109
|
added custom test scaffold t::TestNginxLua which subclasses Test::Nginx::Socket. it supports the environment TEST_NGINX_INIT_BY_LUA which can be used to add more custom Lua code to the value of the init_by_lua directive in the nginx configuration.
|
2013-05-08 21:03:04 -07:00 |
agentzh (Yichun Zhang)
|
17b349e972
|
feature: added new methods safe_set and safe_get to ngx.shared.DICT objects, which never override existing unexpired items but immediately return nil and a "no memory" string message when running out of storage. thanks Matthieu Tourne for requesting this.
|
2013-03-17 17:16:18 -07:00 |
agentzh (Yichun Zhang)
|
3583cb08d5
|
added tests for the "ngx_slab_alloc() failed: no memory" error message. these require the patch https://github.com/agentzh/ngx_openresty/blob/master/patches/nginx-1.2.4-slab_alloc_no_memory_as_info.patch
|
2012-12-05 21:00:35 -08:00 |
agentzh (Yichun Zhang)
|
f928feae8d
|
feature: added the "get_keys" method for the shared dictionaries for fetching all the (or the specified number of) keys (default to 1024 keys). thanks Brian Akins for the patch in pull \#170.
|
2012-10-29 18:09:31 -07:00 |
agentzh (Yichun Zhang)
|
f09867d915
|
feature: implemented shdict:flush_expired(max_count) for flushing out expired items up to max_count (or unlimited when max_count == 0). thanks Brian Akins for the patch.
|
2012-08-24 21:00:19 -07:00 |
agentzh (章亦春)
|
f3a3757c26
|
enforced lua garbage collection full cycles in those shdict test cases to prevent memory leak false alarms.
|
2012-06-11 11:51:53 +08:00 |
agentzh (章亦春)
|
3dfd00aff2
|
bugfix: timestamp could overflow on 32-bit systems in the shared dict API; now we use 64-bit integers.
|
2012-03-06 21:59:37 +08:00 |
agentzh (章亦春)
|
17bb70935e
|
improved Weiqiang Li's patch by fixing the coding style and avoiding unnecessary operations. also added a test case for the new flush_all method.
|
2012-03-06 20:50:47 +08:00 |
agentzh (章亦春)
|
ec4becfead
|
bugfix: the exptime argument to shdict:set/add/etc methods was incorrectly ignored when the flags argument is also specified. thanks the patch from Brian Akins.
|
2012-02-23 15:10:33 +08:00 |
agentzh (章亦春)
|
aaab8c750b
|
fixed shdict tests on i386; also ensure to configure "postpone_output 1" for the sync flush test case that requires buf reuse.
|
2012-02-20 14:15:07 +08:00 |
Brian Akins
|
c8967e5a60
|
match new error message
|
2012-02-04 22:53:48 -05:00 |
Brian Akins
|
24177e8ed6
|
expect nil
|
2012-02-04 22:52:11 -05:00 |
Brian Akins
|
de5e7bf19f
|
user flag test
|
2012-02-04 22:00:38 -05:00 |
agentzh (章亦春)
|
9942742eb9
|
made tests more stable.
|
2011-10-27 22:48:10 +08:00 |
agentzh (章亦春)
|
edde16355e
|
now incr returns the new numerical value as its first return value.
|
2011-10-27 18:05:45 +08:00 |
agentzh (章亦春)
|
24da181717
|
feature: implemented new methods "add", "replace", and "delete" for ngx.shared.DICT. also made the "set" method return 3 values: "success", "err", and "forcible".
|
2011-10-27 17:20:22 +08:00 |
agentzh (章亦春)
|
a935e6fdbf
|
enable the ngx.shared API in set_by_lua* and header_filter_by_lua* too ;)
|
2011-10-26 15:14:35 +08:00 |
agentzh (章亦春)
|
d7c8be39cc
|
fixed test cases for 32-bit systems.
|
2011-10-26 12:38:50 +08:00 |
agentzh (章亦春)
|
e6f6002756
|
reindexed the tests.
|
2011-10-26 12:19:27 +08:00 |
agentzh (章亦春)
|
8d31d75cce
|
shared_dict set: now we try harder when failing to allocate new entry by forcily removing up to 30 least recently used entries.
|
2011-10-26 12:15:52 +08:00 |
agentzh (章亦春)
|
4518fcf71d
|
implemented shared_dict set nil, which effectively removes the key from the dict.
|
2011-10-25 22:52:24 +08:00 |
agentzh (章亦春)
|
f32e5ed8fc
|
added more tests for various error cases and LRU.
|
2011-10-25 19:07:49 +08:00 |
agentzh (章亦春)
|
2549ab48eb
|
added more (passing) tests for the shared dict API.
|
2011-10-24 22:53:09 +08:00 |
agentzh (章亦春)
|
f5a4f7243e
|
the shared_dict get and set are now complete and usable :D
|
2011-10-24 22:27:09 +08:00 |
agentzh (章亦春)
|
4c71768761
|
turned off the master mode.
|
2011-10-12 18:20:25 +08:00 |
agentzh (章亦春)
|
d5e1642083
|
the first test case is passing!
|
2011-10-12 18:04:09 +08:00 |