Граф коммитов

23 Коммитов

Автор SHA1 Сообщение Дата
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) 0be132078d fixed buggy test cases stuck on request body reading, which were exposed by the previous commit. 2015-06-18 00:12:04 +08:00
Yichun Zhang (agentzh) 3abfb1fc62 bugfix: when the ngx.on_abort() user thread was created but never run *and* some other pending user thread was aborted prematurely, the latter thread might get leaked. thanks Dane Knecht for the report. this regression had appeared in the v0.9.9 release. 2014-07-03 14:44:59 -07:00
Yichun Zhang (agentzh) c27f65b2bd updated tests to reflect the changes in commit 60999efe3. 2014-01-07 17:11:47 -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
agentzh (Yichun Zhang) 71e16c46d2 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-07 19:27:48 -07:00
agentzh (Yichun Zhang) eff99d5dba bugfix: use of ngx.req.socket() could make socket reading hang infinitely when the request did not take a request body at all (that is, when the Content-Length request header is missing). thanks Matthieu Tourne for reporting this issue. 2013-03-04 17:30:05 -08:00
agentzh (Yichun Zhang) 96a18a054f fixed more test cases using systemtap that could fail expectedly in slow testing modes. 2013-02-12 17:13:37 -08:00
agentzh (Yichun Zhang) b8af0b925e fixed the missing bits for commit 0d120033. 2013-01-23 20:21:47 -08:00
agentzh (Yichun Zhang) 0d12003313 tests: eliminated hitting Google's web servers (but we still make use of its public DNS servers). 2013-01-22 17:52:06 -08:00
agentzh (Yichun Zhang) 164ef98f45 feature: the user can now call ngx.exit(444) to abort pending subrequests in other light threads from within a light thread. 2012-12-05 17:44:50 -08:00
agentzh (Yichun Zhang) 5d5edcf028 feature: implemented ngx.thread.wait() for synchronously waiting on a child user thread, which also returns the final results of the last implicit call of coroutine.resume() on the user thread coroutine. so now an non-captured Lua exception in a user thread will not abort other running threads in the same nginx request. 2012-09-29 23:47:19 -07:00
agentzh (Yichun Zhang) f4e8894e2d api: renamed ngx.thread.create() to ngx.thread.spawn(). 2012-09-25 16:37:56 -07:00
agentzh (Yichun Zhang) 3b48d03d1d bugfix: aborting ngx.thread coroutines with pending subrequests caused problems and now we just prohibit this by raising Lua exceptions and aborting the main request. 2012-09-25 11:48:13 -07:00
agentzh (Yichun Zhang) 7c65ad1b90 bugfix: ngx.thread abortion did not abort ngx.req.read_body() in time. 2012-09-24 17:45:23 -07:00
agentzh (Yichun Zhang) 94e623f6fe added a (passing) test for aborting the receive() invocation on the ngx.req.socket() object. 2012-09-24 17:08:25 -07:00
agentzh (Yichun Zhang) 1d05ac6149 bugfix: ngx.thread abortion did not abort udpsock:receive() in time. 2012-09-24 16:13:07 -07:00
agentzh (Yichun Zhang) c60ea6817f bugfix: ngx.thread abortion did not abort the reading iterators returned by tcpsock:receiveuntil() in time. 2012-09-24 16:04:02 -07:00
agentzh (Yichun Zhang) 0e54fcd7aa bugfix: ngx.thread abortion did not abort tcpsock:receive() in time. 2012-09-24 15:59:14 -07:00
agentzh (Yichun Zhang) be896210d9 bugfix: ngx.thread abortion did not abort tcpsock:connect() in time. 2012-09-24 15:27:35 -07:00
agentzh (Yichun Zhang) c22c625ec0 bugfix: ngx.thread abortion did not abort the nginx resolver for ngx.socket.udp in time. 2012-09-24 14:58:34 -07:00
agentzh (Yichun Zhang) 5c22e1d4b0 bugfix: ngx.thread abortion did not abort the nginx resolver for ngx.socket.tcp in time. 2012-09-24 11:56:02 -07:00
agentzh (Yichun Zhang) 535edec693 renamed t/094-uthread-exit to t/094-uthread-exit.t. 2012-09-23 17:50:45 -07:00