Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2020-03-04 | Legacy upstream code removed. | Igor Sysoev | 4 | -274/+0 | |
2020-03-04 | Refactored nxt_http_action. | Igor Sysoev | 3 | -21/+19 | |
2020-01-31 | Tests: more routing tests with negative rules. | Andrei Zeliankou | 1 | -0/+57 | |
2020-03-11 | Fixed negative patterns combined with address rules. | Axel Duch | 1 | -6/+40 | |
2020-03-10 | Tests: use blocking to print unit.log files. | Andrei Zeliankou | 1 | -1/+1 | |
2020-03-10 | Tests: redirect tests output to the stdout. | Andrei Zeliankou | 6 | -13/+20 | |
2020-03-06 | Tests: unitd stderr output redirected to unit.log. | Valentin Bartenev | 1 | -13/+13 | |
A part of the debug log was printed to stderr before the log file was opened. Now, this output is redirected to the same log file. | |||||
2020-03-06 | Tests: simplified unitd process running. | Valentin Bartenev | 1 | -42/+26 | |
There are no reasons to wrap the Unit daemon in a separate Python process. | |||||
2020-03-04 | PHP: fixed log format in alert. | Tiago Natel de Moura | 1 | -1/+2 | |
Found by Coverity: CID 354832 and CID 354833. | |||||
2020-03-04 | The kqueue EOF flag might be ignored on some conditions. | Igor Sysoev | 1 | -2/+2 | |
If kqueue reported both the EVFILT_READ and the EVFILT_WRITE events for the socket but only the former had the EV_EOF flag set, the flag was silently ignored. | |||||
2020-03-04 | PHP: added ZTS indication to ./configure output. | Valentin Bartenev | 1 | -0/+19 | |
2020-03-04 | PHP: rearranged feature checks in ./configure. | Valentin Bartenev | 1 | -46/+48 | |
Now it prints version even if PHP was built without embed SAPI. | |||||
2020-03-03 | Tests: chdir() and open() for PHP module. | Tiago Natel de Moura | 6 | -6/+161 | |
These tests ensure optimizations in the chdir calls don't break SAPI semantics. | |||||
2020-03-03 | Tests: added tests for "fallback" option for the "share" action. | Andrei Zeliankou | 1 | -0/+212 | |
2020-03-03 | Tests: check unique options in "action" object. | Andrei Zeliankou | 1 | -0/+50 | |
2020-03-03 | Added a "fallback" option to be used with the "share" action. | Valentin Bartenev | 4 | -23/+68 | |
It allows proceeding to another action if a file isn't available. An example: { "share": "/data/www/", "fallback": { "pass": "applications/php" } } In the example above, an attempt is made first to serve a request with a file from the "/data/www/" directory. If there's no such file, the request is passed to the "php" application. Fallback actions may be nested: { "share": "/data/www/", "fallback": { "share": "/data/cache/", "fallback": { "proxy": "http://127.0.0.1:9000" } } } | |||||
2020-03-03 | Improved validation of the "action" object. | Valentin Bartenev | 2 | -18/+41 | |
Now it enforces the mutual exclusivity of "pass", "proxy", and "share" options. | |||||
2020-03-03 | PHP: optimization to avoid surplus chdir(2) calls. | Tiago Natel de Moura | 2 | -101/+310 | |
For each request, the worker calls the php_execute_script function from libphp that changes to the script directory before doing its work and then restores the process directory before returning. The chdir(2) calls it performs are unnecessary in Unit design. In simple benchmarks, profiling shows that the chdir syscall code path (syscall, FS walk, etc.) is where the CPU spends most of its time. PHP SAPI semantics requires the script to be run from the script directory. In Unit's PHP implementation, we have two use cases: - script - arbitrary path The "script" configuration doesn't have much need for a working directory change: it can be changed once at module initialization. The module needs to chdir again only if the user's PHP script also calls chdir to switch to another directory during execution. If "script" is not used in Unit configuration, we must ensure the script is run from its directory (thus calling chdir before exec), but there's no need to restore the working directory later. Our implementation disables mandatory chdir calls with the SAPI option SAPI_OPTION_NO_CHDIR, instead calling chdir only when needed. To detect the user's calls to chdir, a simple "unit" extension is added that hooks the built-in chdir() PHP call. | |||||
2020-03-03 | Fixing request_app_link reference counting for delayed requests. | Max Romanov | 1 | -9/+36 | |
Router built with debug may stop with assertion during stalled requests re-schedule. This was caused by missing reference counting increment before nxt_router_port_select() call. | |||||
2020-03-03 | Java: fixing Spring applications start. | Max Romanov | 1 | -1/+1 | |
This closes #403 issue on GitHub. | |||||
2020-03-03 | Node.js: fixing x86 warning about the signed/unsigned comparison. | Max Romanov | 1 | -2/+1 | |
2020-03-02 | Tests: truncated huge messages while logging. | Andrei Zeliankou | 1 | -12/+33 | |
2020-02-27 | Tests: added "-r" option to print unit.log on failures. | Andrei Zeliankou | 1 | -5/+24 | |
2020-02-27 | Tests: added test with invalid IPv6 address in routing block. | Andrei Zeliankou | 1 | -0/+1 | |
2020-02-25 | PHP: fixed php >= 7.4 with zts enabled. | Tiago Natel de Moura | 1 | -13/+17 | |
2020-02-21 | Tests: more static tests. | Andrei Zeliankou | 1 | -4/+26 | |
2020-02-20 | Tests: added PHP test with invalid index extension only. | Andrei Zeliankou | 1 | -0/+30 | |
2020-02-20 | Tests: added proxy test with large body. | Andrei Zeliankou | 1 | -0/+7 | |
2020-02-20 | Tests: more tests with "max_body_size". | Andrei Zeliankou | 1 | -0/+25 | |
2020-02-20 | Configuration: removing UTF-8 BOM from the input JSON. | Valentin Bartenev | 1 | -0/+7 | |
Some editors can add it to JSON files. | |||||
2020-02-20 | Configuration: stripping comments from the input JSON. | Valentin Bartenev | 1 | -6/+66 | |
This allows to have JavaScript-like comments in the uploading JSON. | |||||
2020-02-19 | Version bump. | Valentin Bartenev | 1 | -2/+2 | |
2020-02-06 | Added tag 1.15.0 for changeset 801ac82f80fb | Valentin Bartenev | 1 | -0/+1 | |
2020-02-06 | Generated Dockerfiles for Unit 1.15.0.1.15.0 | Valentin Bartenev | 8 | -8/+8 | |
2020-02-06 | Added version 1.15.0 CHANGES. | Valentin Bartenev | 2 | -0/+68 | |
2020-02-05 | Tests: added test for uploading files with SSL. | Tiago Natel de Moura | 2 | -0/+49 | |
* * * [mq]: multipart | |||||
2020-02-05 | Tests: add helper for form-data and multipart. | Tiago Natel de Moura | 2 | -22/+90 | |
2020-02-05 | Kept the value of c->socket.read_handler while data is available. | Tiago Natel de Moura | 1 | -4/+0 | |
This closes #370 in GitHub. | |||||
2020-02-04 | Tests: fixing Python 3.8.1 errors on Mac. | Max Romanov | 3 | -21/+18 | |
- "Can't pickle local object ..." - "if __name__ == '__main__':" pattern required for multiprocessing | |||||
2020-02-04 | Removing duplicate macro definitions. | Max Romanov | 1 | -4/+0 | |
This issue was introduced in 2c7f79bf0a1f. | |||||
2020-02-03 | Initializing local buffer ctx_impl field for correct release. | Max Romanov | 1 | -0/+1 | |
Uninitialized ctx_impl field may cause crash in application process. To reproduce the issue, need to trigger shared memory buffer send error on application side. In our case, send error caused by router process crash. This issue was introduced in 2c7f79bf0a1f. | |||||
2020-02-03 | Fixed req_app_link reference counting on cancellation. | Max Romanov | 1 | -16/+7 | |
Re-scheduled req_app_link structures should have use_count exactly equal to the number of references from the application and port list. However, there's one extra usage decrement that occurs after the req_app_link is created because the use_count is initialised as 1. This patch removes all excess instances of the usage decrement that caused preliminary req_app_link release and router process crash. To reproduce the issue need to cause request rescheduling between 2 app processes. This issue was introduced in 61e9f23a566d. | |||||
2020-02-03 | Storing pointer to next buffer in chain before free the buffer. | Max Romanov | 1 | -2/+3 | |
This is required to avoid dereference of freed memory. Found by Coverity (CID 353372). | |||||
2020-02-03 | Added missing stream argument to error message. | Max Romanov | 1 | -1/+2 | |
Found by Coverity (CID 353386). | |||||
2020-02-03 | Freeing memory allocated for engine structure in case of error. | Max Romanov | 1 | -1/+1 | |
Found by Coverity (CID 353389). | |||||
2020-01-23 | Tests: check for php extension. | Tiago Natel de Moura | 2 | -1/+14 | |
2020-01-28 | PHP: added check for the ".php" extension. | Valentin Bartenev | 1 | -4/+11 | |
A check for the ".php" extension is added to prevent execution of files with arbitrary extensions in cases where "index" and "script" options aren't used. | |||||
2020-01-28 | Go: adding main configure CFLAGS and LDFLAGS to module build flags. | Max Romanov | 1 | -1/+10 | |
This makes ASAN buildbot workers to work out-of-the-box. | |||||
2020-01-28 | Fixed missing IPv6 checking in route-addr and an unused variable. | Axel Duch | 1 | -2/+6 | |
This closes #363 issue on Github. Thanks to to 洪志道 (Hong Zhi Dao). | |||||
2020-01-28 | Node.js: suppress compilation warning. | Max Romanov | 1 | -1/+1 | |