Commit Graph

793 Commits

Author SHA1 Message Date
Igor Sysoev
18377ad288 nxt_port_buf_completion() and nxt_sendbuf_completion().
nxt_sendbuf_completion() has been renamed to nxt_port_buf_completion()
and moved to src/nxt_port_socket.c.  nxt_sendbuf_completion0() has been
renamed to nxt_sendbuf_completion().
2018-03-28 19:10:02 +03:00
Igor Sysoev
cd340b09e6 Using more expressive name for field. 2018-03-28 19:09:56 +03:00
Igor Sysoev
bb8c285678 Using type for nxt_msec_diff(). 2018-03-28 19:07:40 +03:00
Igor Sysoev
baf63dfe74 Aligned macosx-version-min flag for test and build environments.
The flag has been misaligned in the changeset 4979fe09d9cd.
2018-03-28 19:07:32 +03:00
Valentin Bartenev
9844ecd9ec Added tag 0.7 for changeset d2fcec5b0fa3 2018-03-22 21:09:37 +03:00
Valentin Bartenev
157120bfd1 Generated Dockerfiles for Unit 0.7. 2018-03-22 21:07:06 +03:00
Valentin Bartenev
228d8518c7 Added version 0.7 CHANGES. 2018-03-22 21:07:06 +03:00
Andrey Zelenkov
c7e67446a3 Tests: Ruby module. 2018-03-21 18:26:40 +03:00
Alexander Borisov
37051b6c15 Added Ruby support. 2018-03-21 16:50:07 +03:00
Max Romanov
778a90c319 Triggering RPC error for all handlers on port close.
This is required to avoid crashes and memory leaks on Unit exit.
2018-03-21 16:55:09 +03:00
Max Romanov
b865db1bb7 Registered RPC handlers affects port use counters.
Service process port gets closed and released by runtime on process exit,
but there can be active RPC handlers, which uses port structure.
2018-03-21 16:55:02 +03:00
Andrey Zelenkov
82bb66993e Tests: more Perl tests. 2018-03-19 19:03:31 +03:00
Alexander Borisov
41c872010a Perl: improvements to support PSGI specification. 2018-03-19 16:46:17 +03:00
Valentin Bartenev
e254eecb77 PHP: fixed segfault on initialization.
PHP SAPI can call log handler while initializing.  Particularly, that happens
if there's a problem in loading some extension specified in php.ini file.
On this stage server context is empty, so now nxt_thread_log_error() is used.
2018-03-16 18:19:48 +03:00
Andrey Zelenkov
f0df93ee3b Tests: HTTP header field and value tests. 2018-03-16 17:45:25 +03:00
Valentin Bartenev
701a54c177 HTTP parser: excluding leading and trailing tabs from field values.
As required by RFC 7230.
2018-03-15 21:08:29 +03:00
Valentin Bartenev
0b628bfe48 HTTP parser: allowing tabs in field values as per RFC 7230. 2018-03-15 21:07:57 +03:00
Valentin Bartenev
3d2f85d9ca HTTP parser: restricting allowed characters in fields values.
According to RFC 7230 only printable 7-bit ASCII characters are allowed
in field values.
2018-03-15 21:07:56 +03:00
Valentin Bartenev
5a003df1fe HTTP parser: fixed parsing of field values ending with space.
This closes #82 issue on GitHub.
2018-03-15 20:52:39 +03:00
Valentin Bartenev
f81fa2a921 Python: safety checks for request processing context.
An application can store request related functions and mistakenly call them
outside of request processing.  Previously this resulted in segmentation
fault due to unset nxt_python_run_ctx.  Now an exception will be raised.
2018-03-15 17:11:13 +03:00
Valentin Bartenev
cf2767625f Python: fixed crash if start_response() is called inside iteration.
The start_response() uses nxt_python_run_ctx, but it was unset right
after the application call.
2018-03-15 17:10:24 +03:00
Max Romanov
6da1207d95 Skipping idle state when port already closed. 2018-03-15 17:08:39 +03:00
Max Romanov
7958a22de0 Ignoring response for already terminated request.
Request can be terminated because of invalid response headers and content
should be ignored in this case.
2018-03-14 12:03:47 +03:00
Valentin Bartenev
bebc5845f8 Capitalization in the "Server" field. 2018-03-13 20:32:47 +03:00
Max Romanov
1ac9db4750 Releasing application on configuration failure. 2018-03-13 15:32:06 +03:00
Max Romanov
ee092b64eb Socket configuration should retain application.
This retains application during reconfiguration if an incoming connection
was already established before the reconfiguration, but no request was yet
created for the connection and thus no application was yet assigned to
the request.
2018-03-07 19:42:06 +03:00
Sergey Kandaurov
4f712e3fd0 Added support for shm_open(SHM_ANON) extension. 2018-03-06 13:55:51 +00:00
Andrey Zelenkov
30a32c2f09 Tests: detect alerts and Sanitizer errors. 2018-03-06 16:58:47 +03:00
Valentin Bartenev
912a49c609 Reduced number of critical log levels. 2018-03-05 17:32:50 +03:00
Andrei Belov
f2090bce21 Packages: added Fedora support.
Tested on currently supported releases: Fedora 26, Fedora 27.
2018-02-28 09:31:38 +00:00
Andrei Belov
2d2b5048bc Packages: added openSUSE Leap, openSUSE Tumbleweed, SLES support. 2018-03-01 23:03:03 +03:00
Andrei Belov
1f06ccb6d8 Packages: fixed changelog generation for rpms. 2018-03-01 23:03:03 +03:00
Andrei Belov
49c58909ad Packages: include unit.spec under specs target. 2018-03-01 23:03:03 +03:00
Andrei Belov
5d5117ce34 Packages: unified check-build-depends target. 2018-03-01 23:03:03 +03:00
Andrei Belov
d27e100b44 Packages: perl-ExtUtils-Embed added to unit-perl dependencies on CentOS. 2018-03-01 23:03:03 +03:00
Andrei Belov
231027e257 Packages: added epel-release to unit-go dependencies on CentOS 6. 2018-03-01 23:23:31 +03:00
Andrei Belov
b2fb20780a Packages: added essential build dependencies. 2018-02-28 10:12:25 +03:00
Andrey Zelenkov
6aa00fa8d0 Tests: more configuration tests. 2018-02-26 20:18:24 +03:00
Andrey Zelenkov
a89747e97c Tests: more perl tests. 2018-02-26 19:53:40 +03:00
Andrey Zelenkov
6d79c559b5 Tests: handle ConnectionRefusedError in TestUnitHTTP.http(). 2018-02-20 20:34:46 +03:00
Andrey Zelenkov
09f2009df5 Tests: reworked python tests with application. 2018-02-20 20:34:41 +03:00
Max Romanov
babf67712e Removed unwanted assertions. 2018-02-20 19:00:30 +03:00
Andrey Zelenkov
ee39da0e00 Tests: removed unused code in unit.py. 2018-02-14 17:14:16 +03:00
Valentin Bartenev
27b00629e1 Fixed race condition while discovering modules.
Previously, the discovery process might exit before the main process
received a list of available modules.
2018-02-14 16:33:35 +03:00
Andrei Belov
94049bf30f Docs: reduced number of similar entries in changes.xml. 2018-02-14 14:40:04 +03:00
Andrei Belov
951d3b26cc Docs: extended xsls template for changelogs generation. 2018-02-14 14:00:37 +03:00
Max Romanov
18c66cb07d Improving configuration field mapping names.
Avoiding word 'common' as too common.
Couple of assertions reduced to error messages.
2018-02-13 21:28:21 +03:00
Igor Sysoev
5365dadb4b signalfd() notification should be ignored if nothing was read. 2018-02-12 20:09:13 +03:00
Andrey Zelenkov
e2c3fa6304 Tests: perl module. 2018-02-12 19:32:54 +03:00
Valentin Bartenev
9646772a00 HTTP: the Date response header. 2018-02-12 16:58:40 +03:00