Commit graph

772 commits

Author SHA1 Message Date
Andrey Zelenkov
b12f1ea42d Tests: assertTry() function introduced. 2018-01-15 15:57:32 +03:00
Andrey Zelenkov
75af52fd65 Tests: check_version() function introduced. 2018-01-15 15:00:44 +03:00
Igor Sysoev
ac433f1f30 Added version 0.4 CHANGES. 2018-01-15 15:05:25 +03:00
Igor Sysoev
a35732bf05 PHP: "--lib-static" option uses "--lib-path" option. 2018-01-15 15:05:22 +03:00
Valentin Bartenev
845b373bda Fixed reading of the rest of body, broken after 5817734dd9b9. 2018-01-12 21:36:24 +03:00
Igor Sysoev
c9ae198016 PHP: added "--lib-static" configure option.
The libraries returned by "php-config --libs" are required to link with
static libphp.a.  Dynamic libphp.so contains the required libraries names.
2018-01-12 18:15:58 +03:00
Igor Sysoev
059695eeed HTTP: request body length was not passed to application.
The bug has appeared in changeset 5817734dd9b9.
2018-01-12 17:54:50 +03:00
Max Romanov
fa49d042a8 PHP: Terminating names with zero.
Fixing issue introduced in changeset 462:17a2c9b27b57 .
2018-01-12 16:37:42 +03:00
Max Romanov
aad4229cbc Initializing script_name.start before using.
This makes gcc 4.4.6 happy.
2018-01-12 11:19:00 +03:00
Max Romanov
349717fb90 Changing relative php scripts paths to real ones.
This is required to run phpMyAdmin.
2018-01-11 22:14:20 +03:00
Igor Sysoev
c105988e51 Fixed DragonFly BSD shared memory implementation. 2018-01-11 17:13:58 +03:00
Igor Sysoev
f7bc2e1560 Using hg archive instead of copying to make distribution tarball. 2018-01-11 09:54:35 +03:00
Igor Sysoev
2fa203f2da HTTP: fixed large header buffers allocation and deallocation.
This closes #74 issue on GitHub.
2018-01-11 09:49:36 +03:00
Igor Sysoev
b09227fa5c HTTP: request body was not passed to application.
The bug has appeared in changeset 5817734dd9b9.
2018-01-11 09:49:35 +03:00
Andrey Zelenkov
470948a0d6 Tests: style. 2018-01-10 20:35:22 +03:00
Andrey Zelenkov
8546d6d499 Tests: --no-daemon option used for unit. 2018-01-10 19:43:44 +03:00
Andrey Zelenkov
138727ec46 Tests: remove temporary folder when module not found. 2018-01-10 19:41:53 +03:00
Valentin Bartenev
e8aada94de HTTP parser: allowing underscore in header field names. 2018-01-09 16:50:47 +03:00
Valentin Bartenev
c85c9dc7a8 Year 2018. 2018-01-01 16:31:07 +03:00
Igor Sysoev
30a83a1159 Using correct pointer and size for memzero operation.
Found by Coverity (CID 215689).
2017-12-29 19:42:54 +03:00
Igor Sysoev
4c4981f992 Using correct pointer in test operation.
Found by Coverity (CID 215687).
2017-12-29 18:43:55 +03:00
Igor Sysoev
bcbe6df8af Corrected allocation size of HTTP response header. 2017-12-29 18:43:54 +03:00
Igor Sysoev
965a95d602 Version bump. 2017-12-29 18:43:51 +03:00
Andrei Belov
3e9e6878a6 Packages: fixed building on 64-bit Debian 9 and Ubuntu 17.10. 2017-12-28 22:16:52 +03:00
Igor Sysoev
d45326481c Added tag 0.3 for changeset b8400e8feb36 2017-12-28 21:25:22 +03:00
Igor Sysoev
8492ba945b Fixed Go package and PHP module building.
Go package and PHP module could not be built after changeset 5817734dd9b9.
2017-12-28 21:07:28 +03:00
Valentin Bartenev
cbab4939ec Removed 0.3 tag, again. 2017-12-28 20:56:16 +03:00
Igor Sysoev
dbd7540a04 Removed duplicate declaration. 2017-12-28 20:50:49 +03:00
Andrei Belov
cb3c7dd40c Packages: hardening flags for rpm. 2017-12-28 20:38:36 +03:00
Andrei Belov
d22aa88405 Packages: hardening flags for deb. 2017-12-28 20:38:36 +03:00
Andrei Belov
ad63a3e752 Packages: added support for Ubuntu 17.10. 2017-12-28 20:38:35 +03:00
Andrei Belov
e939b8ae18 Packages: added python 3.4 module on Debian 8. 2017-12-28 20:38:34 +03:00
Igor Sysoev
c4894036c3 Removed tag 0.3 2017-12-28 20:37:46 +03:00
Igor Sysoev
9f619eb707 Added tag 0.3 for changeset c059dbae9ac3 2017-12-28 20:25:10 +03:00
Igor Sysoev
dc47f02307 Removed duplicate declaration. 2017-12-28 20:12:19 +03:00
Igor Sysoev
795a244bd0 Disabled Nagle algorithm for keep-alive connections. 2017-12-28 20:12:13 +03:00
Igor Sysoev
ecba3d80f9 Fixing memory leak introduced in changeset 5817734dd9b9. 2017-12-28 20:08:15 +03:00
Igor Sysoev
ea40378206 Removed tag 0.3 2017-12-28 20:06:29 +03:00
Igor Sysoev
c9024a3dc8 Added tag 0.3 for changeset ab13db235c19 2017-12-28 16:32:07 +03:00
Igor Sysoev
8ba7f5f1e5 Added version 0.3 CHANGES. 2017-12-28 16:01:06 +03:00
Igor Sysoev
9a6d3c5775 HTTP keep-alive connections support. 2017-12-28 16:01:06 +03:00
Igor Sysoev
497faf1b9a Changed nxt_mp_retain() and nxt_mp_release() interfaces. 2017-12-28 16:01:06 +03:00
Max Romanov
b59535b22c Removed unused variable assignment.
Found by Coverity (CID 215301).
2017-12-28 15:58:01 +03:00
Max Romanov
47bc1c53d6 Implementing worker stop after limits.requests. 2017-12-27 17:48:53 +03:00
Max Romanov
5196cf4d50 Rescheduling of pending request after configured timeout.
New optional configuration parameter introduced: limits.reschedule_timeout.
Default value 1 second.  In the case when request is written to the port
socket 'in advance', it is called 'pending'.

On every completed request, the head of pending request is checked against
reschedule timeout.  If this request waiting for execution longer than
timeout, it is cancelled, new port selected for this request.
2017-12-27 17:48:04 +03:00
Max Romanov
baa8c9387b Fixing code style. 2017-12-27 17:47:42 +03:00
Max Romanov
bef2ec483e Fixing application timeout.
Application timeout limits maximum time of worker response in processing
particular request.  Not including the time required to start worker,
time in request queue etc.
2017-12-27 17:47:18 +03:00
Max Romanov
ab138c9166 Changing worker selection precedence.
This patch increase precedence of non-started worker over busy worker.

1. idle worker;
2. start new worker;
3. busy worker, but can accept request in advance;
2017-12-27 17:46:39 +03:00
Max Romanov
89c0f7c5db Implementing the ability to cancel request before worker starts processing it. 2017-12-27 17:46:17 +03:00
Valentin Bartenev
45d08d5145 HTTP parser: introduced nxt_http_parse_fields(). 2017-12-27 15:45:23 +03:00