Max Romanov
8241539734
Java: fixing typo in context initialization.
2019-05-30 15:02:09 +03:00
Max Romanov
6a2928b4bf
Java: fixing request scheme using 'tls' flag.
2019-05-30 15:02:07 +03:00
Andrey Zelenkov
c4ed3025b3
Tests: more routing tests with arrays.
2019-04-26 17:35:32 +03:00
Andrey Zelenkov
2ceee3471e
Tests: TestControl.conf_post() introduced.
2019-04-26 17:35:32 +03:00
Andrey Zelenkov
bc4a1d86b9
Tests: TestControl refactored.
2019-04-26 17:35:31 +03:00
Andrey Zelenkov
644e6df687
Tests: check application configuration loading.
2019-04-26 17:35:26 +03:00
Valentin Bartenev
6a6bc63c48
Configuration: support for POST operations on arrays.
...
It allows to add an array element without specifying the index.
2019-04-24 20:31:00 +03:00
Valentin Bartenev
4d35a7bbac
Configuration: support for manipulations of array elements.
...
Now PUT and DELETE operations also work on elements.
This closes #242 issue on GitHub.
2019-04-24 20:31:00 +03:00
Valentin Bartenev
30768b7b3c
Refactored nxt_conf_op_compile().
...
Now index is always initialized for create operations.
The changes in nxt_conf_op_compile() simplify adding upcoming support of
operations with arrays.
No functional changes.
2019-04-24 20:31:00 +03:00
Valentin Bartenev
1467d34d73
Removed unused field from nxt_conf_op_s.
2019-04-24 20:31:00 +03:00
Valentin Bartenev
094cc2fc99
Packages: using "pass" option in config examples.
...
The "application" option has been deprecated since 1.8.0.
2019-04-24 20:31:00 +03:00
Andrey Zelenkov
7a559c6568
Tests: using blocking for large output.
2019-04-22 18:52:46 +03:00
Andrey Zelenkov
5d15d8449d
Tests: read_timeout increased for incomplete requests.
...
Also fixed test without \"Host\" header.
2019-04-22 18:52:35 +03:00
Andrey Zelenkov
1c56579ebd
Tests: fixed naming.
2019-04-22 18:37:46 +03:00
Valentin Bartenev
c1a3b06d03
Tests: using "pass" option instead of deprecated "application".
2019-04-22 18:20:53 +03:00
Andrei Belov
48ae47017b
Packages: Ubuntu 19.04 "disco" support added.
2019-04-22 13:50:02 +03:00
Andrey Zelenkov
0c12afbf6a
Tests: using low-case header names in Node.js tests.
2019-04-18 19:27:12 +03:00
Max Romanov
c6e96647a1
Node.js: using low-case header names as key in req.headers.
...
Node.js modules (body-parser, row-body) search low-cased names
('content-length', 'content-type' etc.) to properly assemble request body.
This closes #246 issue on GitHub.
2019-04-17 19:15:41 +03:00
Andrey Zelenkov
704529e4b1
Tests: more wildcard pattern tests for routing.
2019-04-15 16:08:53 +03:00
Andrey Zelenkov
b3179538ef
Tests: wait more time on Unit closing.
2019-04-15 15:52:32 +03:00
Andrey Zelenkov
0f8a602c3c
Tests: added time to handle requests in access_log partial tests.
2019-04-15 15:52:32 +03:00
Valentin Bartenev
5e1cf14565
Controller: rejecting double wildcards.
2019-04-12 17:44:55 +03:00
Valentin Bartenev
f0cc14d394
Simplified cycles in nxt_http_route_rule().
2019-04-12 17:44:54 +03:00
Igor Sysoev
8339b15158
Added support for wildcards in the middle of match patterns.
2019-04-10 13:47:34 +03:00
Andrey Zelenkov
ac7e65a722
Tests: check unitd availability before start.
2019-04-09 20:59:41 +03:00
Andrey Zelenkov
dfb625789b
Tests: read_timeout increased.
2019-04-09 20:59:41 +03:00
Andrey Zelenkov
29b4e4431f
Tests: speed up tests.
2019-04-09 20:59:35 +03:00
Andrey Zelenkov
549f0873c2
Tests: wait_for_record() introduced.
2019-04-09 16:14:42 +03:00
Andrey Zelenkov
cfcf4da7fa
Tests: added "name" argument for search_in_log().
2019-04-09 16:14:42 +03:00
Andrey Zelenkov
8c7411415a
Tests: style.
2019-04-09 16:14:42 +03:00
Andrey Zelenkov
af24e4dec4
Tests: simplified module checking.
2019-04-09 16:14:42 +03:00
Valentin Bartenev
7b839bf5da
Backed out changeset f74d4dd9c3db.
...
This closes #240 issue on GitHub.
2019-04-03 18:40:47 +03:00
Max Romanov
6241099db2
Removing unused variables and assignments.
...
Warnings introduced in 53533ba0097c commit.
2019-04-02 16:07:49 +03:00
Max Romanov
56101e47ee
Adding 'connection' to request as an alias to 'socket'.
...
Adding actual 'remoteAddress' and 'localAddress' into socket object.
This closes #232 issue on GitHub.
2019-04-01 16:40:49 +03:00
Max Romanov
8557cb3660
Introducing close event to notify about server stop.
...
This closes #236 on GitHub.
Thanks to 0xcdcdcdcd.
2019-04-01 16:40:40 +03:00
Max Romanov
aca42de18a
Adding syntax sugar.
...
With exceptions and overloads.
2019-04-01 16:40:33 +03:00
Andrey Zelenkov
19eba1730a
Tests: unit module refactoring.
2019-03-28 18:43:13 +03:00
Andrey Zelenkov
06b9a11494
Tests: speed up Java tests.
2019-03-26 23:39:15 +03:00
Andrey Zelenkov
281899fcef
Tests: style.
2019-03-26 23:38:30 +03:00
Andrei Belov
3d7a47c9ac
Packages: added RHEL 8 support.
2019-03-26 13:22:59 +03:00
Max Romanov
b96e5fd848
Turning off port read event state after main process fork.
...
Master port stores two file descriptors and works as a read port on the master
process side. After a fork, the port switches into write mode and the read
socket closes, but the same event structure is used for the write socket.
However, the inherited structure remained in read state, telling the epoll
engine to use MOD operation instead of ADD. The patch resets read event
state, so the engine may write using proper ADD operation.
2019-03-25 14:49:28 +03:00
Max Romanov
6c694d4b47
Ignoring EPERM error when changing application process uid/gid.
...
This closes #228 issue on GitHub.
2019-03-22 15:32:58 +03:00
Max Romanov
1b7514dca3
Destroying pool in case of error.
...
This closes #233 issue on GitHub.
Thanks to 洪志道 (Hong Zhi Dao).
2019-03-22 15:32:40 +03:00
Max Romanov
687f83fbd0
Style fixing.
...
This closes #233 issue on GitHub.
Thanks to 洪志道 (Hong Zhi Dao).
2019-03-22 15:32:35 +03:00
Max Romanov
452ce0789e
Adjusting request schema value according to connection tls state.
...
This closes #223 issue on GitHub.
2019-03-21 13:55:57 +03:00
Max Romanov
39e147a858
Removing unused local variable.
2019-03-18 19:55:39 +03:00
Max Romanov
f49379215a
Setting request error flag in error handler.
...
Absence of this flag is the reason of memory leak in case when client
disconnected before receiving all response data.
2019-03-18 19:55:34 +03:00
Andrey Zelenkov
22de5fcddf
Style.
2019-03-11 17:31:59 +03:00
Alexander Borisov
dccb4cf354
Removed unnecessary abstraction layer.
2019-03-06 15:26:45 +03:00
Max Romanov
e1c4568680
Introducing one more large config test, but without sockets.
2019-03-05 15:38:52 +03:00