Andrey Zelenkov
7152162886
Tests: set default "unsafe" value.
2019-09-16 15:37:32 +03:00
Andrei Belov
6f1f3b48b2
Packages: added explicit library path for Java on RPM based distros.
...
This helps to avoid using excessive strictness in RPATH of Java modules.
2019-09-16 13:28:06 +03:00
Max Romanov
2a6af1d214
Added "extern" to nxt_http_fields_hash_proto to avoid link issues.
2019-09-09 17:39:24 +03:00
Andrey Zelenkov
f10a8a03a1
Tests: Java websockets tests.
2019-09-05 15:30:09 +03:00
Max Romanov
2b8cab1e24
Java: introducing websocket support.
2019-09-05 15:27:32 +03:00
Andrey Zelenkov
3e23afb0d2
Tests: increased read_timeout for websockets tests.
2019-09-03 21:23:32 +03:00
Max Romanov
daadc2e00b
Making request state handler calls more consistent.
2019-09-02 18:27:08 +03:00
Andrey Zelenkov
1cfd329b3d
Tests: fixed recv_bytes() in websockets.py.
2019-09-02 18:03:33 +03:00
Andrey Zelenkov
790b4f8f00
Tests: removed duplicate websocket tests.
2019-09-02 18:03:17 +03:00
Andrey Zelenkov
70e808040d
Tests: prevented writing non-chopped frames to the closed socket.
2019-09-02 14:55:00 +03:00
Andrey Zelenkov
cb36616132
Tests: prevented writing to the closed socket for websocket tests.
2019-08-30 16:59:35 +03:00
Andrey Zelenkov
ccd6c0dc05
Tests: websockets style fixes.
2019-08-30 15:37:44 +03:00
Max Romanov
7053a35a60
Fixed WebSocket implementation that was broken on some systems.
...
The "nxt_http_websocket" request state, defined in "nxt_http_websocket.c",
is used in "nxt_router.c" and must be linked with external symbol declared
in "nxt_router.c".
Due to the missing "extern" keyword, building Unit with some linkers
(notably gold and LLD) caused WebSocket connections to get stuck or even
crash the router process.
2019-08-30 00:07:54 +03:00
Igor Sysoev
e2abfaf381
Adding body handler to nxt_http_request_header_send().
2019-08-26 18:29:00 +03:00
Valentin Bartenev
1298824130
Version bump.
2019-08-26 18:06:03 +03:00
Andrei Belov
9b459d5d26
Added changes for 1.10.0-2 bugfix release.
2019-08-23 12:10:20 +03:00
Max Romanov
5d4426ed65
Installing libunit files for websocket support.
2019-08-23 01:19:57 +03:00
Andrey Zelenkov
c47af243b0
Tests: removed keepalive_interval for websocket tests.
...
Also increased read_timeout in frame_read() for slow hosts.
2019-08-22 21:28:03 +03:00
Valentin Bartenev
bc57d1d076
Added tag 1.10.0 for changeset cdbba3c3e376
2019-08-22 18:56:22 +03:00
Valentin Bartenev
19f59b221d
Generated Dockerfiles for Unit 1.10.0.
2019-08-22 18:43:25 +03:00
Valentin Bartenev
700987c355
Fixed rebuilding of Dockerfiles.
2019-08-22 18:43:21 +03:00
Valentin Bartenev
0a106e3cbc
Added version 1.10.0 CHANGES.
2019-08-22 18:43:02 +03:00
Andrey Zelenkov
72b56388b7
Tests: Node.js websockets tests tuned.
2019-08-22 18:28:23 +03:00
Max Romanov
e291841b33
Node.js: introducing websocket support.
2019-08-20 16:32:05 +03:00
Max Romanov
e501c74ddc
Introducing websocket support in router and libunit.
2019-08-20 16:31:53 +03:00
Andrey Zelenkov
9bbf54e23e
Tests: Node.js websockets.
2019-08-22 15:33:41 +03:00
Andrey Zelenkov
08601bbbf0
Tests: "--unsafe" option introduced.
2019-08-22 15:26:15 +03:00
Andrey Zelenkov
b4c09e2954
Tests: reverted rerun for Java tests in 5e429a7f133c.
...
Each testcase should also recompile to be recompiled.
So backed out for now.
2019-08-21 14:24:23 +03:00
Max Romanov
686f5b1436
Changing the sequence of body send execution.
...
Request state ready_handler required for further websocket events processing.
It is not required for regular response transferring.
2019-08-16 14:55:18 +03:00
Max Romanov
29911538ea
Improving response header fields processing.
...
Fields are filtered one by one before being added to fields list.
This avoids adding and then skipping connection-specific fields.
2019-08-16 00:56:38 +03:00
Max Romanov
caea9d3c07
Fixing multi-thread port write racing conditions.
2019-08-16 00:48:11 +03:00
Andrey Zelenkov
4d7576d323
Tests: print decoded strings in detailed mode, if possible.
2019-08-14 16:26:47 +03:00
Max Romanov
1b095ff417
Renaming supplemental request structures in router.
...
- nxt_req_app_link_t -> nxt_request_app_link_t
- nxt_req_conn_link_t -> nxt_request_rpc_data_t
Corresponding abbreviated field names also changed:
- ra -> req_app_link
- rc -> req_rpc_data
2019-08-14 23:59:46 +03:00
Andrey Zelenkov
ac316ff7a5
Tests: fixed port reusing to avoid access issues.
2019-08-14 15:53:58 +03:00
Max Romanov
4bef4256c0
Java: implementing multipart message support.
...
This closes #265 issue on GitHub.
2019-08-14 15:24:41 +03:00
Andrey Zelenkov
8904c87c6b
Tests: goftm used for Go applications.
2019-08-14 14:06:28 +03:00
Andrey Zelenkov
b3b7013eda
Tests: added tests for deleting listeners and applications objects.
2019-08-14 14:06:22 +03:00
Andrey Zelenkov
78fbf9ee60
Tests: fixed modules version parsing.
2019-08-08 15:47:26 +03:00
Andrey Zelenkov
e8d1c760d6
Tests: Java multipart test.
2019-08-07 14:43:38 +03:00
Andrey Zelenkov
c8c259b972
Tests: rerun tests for each module version.
...
Rerun supported for Python, PHP, Perl, Ruby, and Java modules.
2019-08-06 18:25:13 +03:00
Valentin Bartenev
274260bd28
Router: allowed empty configurations.
...
Now it's possible to delete "listeners" and "applications" objects.
This closes #187 issue on GitHub.
2019-08-06 17:13:13 +03:00
Valentin Bartenev
7fd9444728
Node.js: returning "this" from writeHead() to allow chaining.
...
In Node.js version 11.10.0 and later, the writeHead() function returns "this".
2019-08-06 16:24:11 +03:00
Igor Sysoev
c7210eaa5a
nxt_h1proto_t definition was moved to h1proto implementation.
2019-08-06 15:29:40 +03:00
Igor Sysoev
17bb22a4e4
Refactored HTTP protocol callback table.
2019-08-06 15:29:39 +03:00
Andrey Zelenkov
fdf570f1d9
Tests: added delay before SIGQUIT in access_log partial tests.
...
This change is necessary to avoid race between
client connection close and Unit close.
Also "read_timeout" value decreased to speed up tests.
2019-08-01 18:15:00 +03:00
Axel Duch
7785c96c1a
Added routing based on request scheme.
...
Scheme matches exact string “http” or “https”.
2019-07-24 13:47:35 +03:00
Andrey Zelenkov
b1165d2edc
Tests: fixed test_java_conf_error to pass with "--modules=" option.
2019-07-23 14:58:27 +03:00
Valentin Bartenev
242dc363ce
Perl: propagated compile options from perl build.
...
Some Perl compile options affects ABI and not using them while compiling
our module resulted in non-working build.
Notably on 32-bit Debian 10, Perl is built with -D_FILE_OFFSET_BITS=64
and our module after being compiled without this option caused segmentation
faults in unexpected places.
2019-07-17 21:17:30 +03:00
Valentin Bartenev
dbce694d5a
Perl: removed "--include=" configure option.
...
It's surplus option because the perl executable returns the proper path.
Also the Perl module configure script was cleaned up a bit.
Note that NXT_PERL_LDOPTS already contains the library path.
2019-07-17 21:17:30 +03:00
Andrey Zelenkov
a920215a5c
Tests: more Java tests.
...
Added test with war file and error configuration test.
2019-07-17 17:48:35 +03:00