Commit Graph

533 Commits

Author SHA1 Message Date
Valentin Bartenev
01c6f149a6 Generated Dockerfiles for Unit 0.5. 2018-02-08 18:59:02 +03:00
Valentin Bartenev
40a360b640 Added version 0.5 CHANGES. 2018-02-08 18:42:51 +03:00
Igor Sysoev
11d5206866 Router: fixed freed memory access race condition. 2018-02-08 16:51:49 +03:00
Andrey Zelenkov
0d032c1036 Tests: expectedFailure removed from test_python_keepalive.py.
Fix committed in 28a2b93de75f.
2018-02-08 16:29:37 +03:00
Alexander Borisov
433eadc2e9 Perl: fixed IO-Object duplication bug. 2018-02-08 16:28:52 +03:00
Valentin Bartenev
31f72401d9 Fixed reading of the rest of body, again.
The last attempt in ee5f278e8c81 wasn't enough.
2018-02-07 18:17:41 +03:00
Andrei Belov
07303fb0d7 Docker: added Perl image. 2018-02-07 17:26:41 +03:00
Andrei Belov
dc96d08961 Packages: fixed building of deb packages with redefined versions. 2018-02-07 17:26:38 +03:00
Andrei Belov
539caf0946 Packages: added Perl package. 2018-02-07 17:26:37 +03:00
Andrei Belov
7830026368 Perl: use ExtUtils::Embed in configure. 2018-02-07 17:26:30 +03:00
Andrei Belov
fc22d1d76d Packages: fixed example configurations after fa714d76592b. 2018-02-07 17:26:29 +03:00
Andrey Zelenkov
949ba262cc Style fixes. 2018-02-07 15:34:42 +03:00
Max Romanov
d2c85a2d9e Fixed processing of application response in router.
If the first buffer contained only header and there were other buffers in chain,
those buffers were not processed.  In particular, this broke Perl application
responses with empty body.
2018-02-07 13:47:04 +03:00
Alexander Borisov
79259d1ebd Perl: added more checks for 'body' variable 2018-02-06 21:13:57 +03:00
Andrey Zelenkov
b4e467e669 Fixed configuration checks for "max" property. 2018-02-06 20:31:48 +03:00
Andrey Zelenkov
5c35d30cc8 Tests: more tests for processes. 2018-02-06 20:31:48 +03:00
Andrey Zelenkov
993f8f2d5c Tests: changed process counting in test_python_procman.py. 2018-02-06 20:31:42 +03:00
Andrey Zelenkov
ff9fa11cd9 Tests: minor fixes in test_python_procman.py. 2018-02-06 20:17:09 +03:00
Andrey Zelenkov
91dc1303f5 Tests: added "Connection: close" header for default requests. 2018-02-05 15:39:23 +03:00
Andrey Zelenkov
0379f927b3 Tests: simplified test for query string. 2018-02-05 15:39:16 +03:00
Andrey Zelenkov
3faa154223 Tests: adjusted check_version()'s. 2018-02-05 15:39:11 +03:00
Max Romanov
f7195e7016 Fixed typo in assertion statement introduced in 4979fe09d9cd.
Found by Coverity (CID 260375).
2018-02-02 14:08:18 +03:00
Alexander Borisov
960962ddce Added Perl support. 2018-01-31 15:47:00 +03:00
Konstantin Pavlov
311db93f00 Generated Dockerfiles for unit 0.4. 2018-01-30 19:09:57 +03:00
Konstantin Pavlov
23268a1cd1 Introduced docker images building tools. 2018-01-30 17:20:28 +03:00
Max Romanov
9cd4fdbdb7 Introducing extended app process management.
- Pre-fork 'processes.spare' application processes;
- fork more processes to keep 'processes.spare' idle processes;
- fork on-demand up to 'processes.max' count;
- scale down idle application processes above 'processes.spare' after
  'processes.idle_timeout';
- number of concurrently started application processes also limited by
  'processes.spare' (or 1, if spare is 0).
2018-01-29 16:17:36 +03:00
Andrey Zelenkov
a36babddef Tests: added keep-alive test. 2018-01-30 16:17:08 +03:00
Andrey Zelenkov
afa0fd9a71 Tests: reworked TestUnitHTTP. 2018-01-30 16:17:01 +03:00
Andrey Zelenkov
9f48f2b3e7 Tests: added methods to manage unit configuration. 2018-01-30 16:16:52 +03:00
Andrey Zelenkov
f115cb7032 Tests: small fixes. 2018-01-30 16:16:42 +03:00
Andrey Zelenkov
cb80be00a5 Tests: fixed test for listener without port.
Broken after 879868522dbf.
2018-01-30 16:16:26 +03:00
Andrei Belov
51009004af Packages: "test" and "test-debug" targets for deb. 2018-01-26 17:44:27 +03:00
Andrei Belov
9d1410a0bb Packages: "test" and "test-debug" targets for rpm. 2018-01-26 17:44:26 +03:00
Valentin Bartenev
7fe8f72364 HTTP parser: simplified nxt_http_parse_field_value().
There's no need in loop after 4ac474b68658.

Found by Coverity (CID 259713).
2018-01-25 10:31:22 +03:00
Andrey Zelenkov
4b19848e4e Tests: ignore unexpected successes in return code. 2018-01-24 16:37:56 +03:00
Andrey Zelenkov
17e1a19063 Tests: added test for QUERY_STRING variable. 2018-01-24 15:45:39 +03:00
Andrey Zelenkov
955ba9d7dd Tests: added test with "Transfer-Encoding" header in 204 response. 2018-01-24 15:43:36 +03:00
Andrey Zelenkov
331514fcf7 Tests: using "expectedFailure" decorator instead of assertTry(). 2018-01-24 15:43:04 +03:00
Sergey Kandaurov
771e9d3cc3 Fixed formatting in nxt_sprintf() and logging. 2018-01-24 15:16:33 +03:00
Sergey Kandaurov
67c64a99fb Using size_t for the field width type of the "%*s" specifier. 2018-01-24 15:16:32 +03:00
Valentin Bartenev
477e8177b7 HTTP parser: restricting control chars in header fields values.
This also fixes an infinite loop here (found with honggfuzz).
2018-01-24 15:02:56 +03:00
Andrei Belov
7e3480b046 Packages: explicit Python module versioning in Debian examples. 2018-01-22 16:39:32 +03:00
Andrei Belov
0c4ec72ca8 Packages: added support for Amazon Linux. 2018-01-22 16:39:31 +03:00
Andrei Belov
be8df0631a Packages: improved per-module dependency tracking. 2018-01-22 16:39:31 +03:00
Valentin Bartenev
d1f29ed77e Python: fixed the "wsgi.errors" environment variable name.
This closes issue #76 on GitHub.
2018-01-19 19:45:11 +03:00
Valentin Bartenev
01ec9a5dba Ability to validate configuration options with multiple types. 2018-01-18 15:52:44 +03:00
Max Romanov
2db8e586e5 Reduced duplication of validated app config options.
Common options moved to separate array.  Application-specific arrays refers
to common options.
2018-01-18 09:08:25 +03:00
Max Romanov
c2918a0014 Introducing pretty NXT_CONF_VLDT_END macro. 2018-01-18 09:08:16 +03:00
Andrey Zelenkov
a949c2f088 Tests: using LF line ending for test files. 2018-01-17 15:52:01 +03:00
Igor Sysoev
37a713c217 HTTP: fixed chunked response on 32-bit platforms. 2018-01-16 11:48:38 +03:00