Commit Graph

777 Commits

Author SHA1 Message Date
Igor Sysoev 1fab645246 Added "408 Request Timeout" error response. 2018-04-10 19:38:48 +03:00
Igor Sysoev 73bdb5ec09 Refactored HTTP header parsing. 2018-04-10 19:38:45 +03:00
Igor Sysoev 0a44ac371a Splitting HTTP processing in more granulate connection states. 2018-04-10 19:30:45 +03:00
Valentin Bartenev 41317e37da HTTP parser: saving partial method.
This is useful for log purposes.
2018-04-10 16:51:22 +03:00
Valentin Bartenev 8d697e8004 HTTP parser: saving unsupported version.
This is useful for log purposes.
2018-04-10 16:51:22 +03:00
Valentin Bartenev b1b9c78362 HTTP parser: correct "target" for partial or invalid request line. 2018-04-10 16:51:22 +03:00
Valentin Bartenev eb51264710 Processing of partially parsed HTTP header.
This is useful for log purposes.
2018-04-09 19:16:19 +03:00
Valentin Bartenev 96927e7d0c Controller: fixed a memory leak when PUT operation failed.
Thanks to 洪志道 (Hong Zhi Dao).
2018-04-08 14:08:06 +03:00
Max Romanov 8934afee24 Go: Forced WriteHeader after application request processing.
Application should create response for every request.
If not, Unit package will do it.
2018-04-06 16:27:46 +03:00
Andrey Zelenkov f6c3ef7ed3 Tests: added Python test with not iterable object. 2018-04-05 17:55:06 +03:00
Max Romanov 2f3b9d4583 Handling error return from application 'run()' function.
Server error response generated or connection closed.
2018-04-05 17:20:26 +03:00
Max Romanov d748f74f2b Stopping timed out application process. 2018-04-05 17:19:25 +03:00
Valentin Bartenev c0a423aa74 Fixed NXT_INT64_T_HEXLEN.
This closes #89 issue on GitHub.
Thanks to hongzhidao.
2018-04-05 15:54:08 +03:00
Valentin Bartenev d15b4ca906 Style. 2018-04-05 15:49:41 +03:00
Alexander Borisov 49bd3a21e0 Changed version processing for modules. 2018-04-04 18:53:39 +03:00
Valentin Bartenev 0665896a55 Style: capitalized letters in hexadecimal literals. 2018-04-04 18:13:05 +03:00
Andrey Zelenkov 43ba7aad6c Tests: fixed unwanted comment in a11b80dedc6b. 2018-04-04 15:33:11 +03:00
Alexander Borisov f2c0c18f8b Ruby: added 'enc/trans/transdb' module for converting encodings.
This closes #92 issue on GitHub.
2018-04-03 16:26:22 +03:00
Igor Sysoev fa04c05aa0 HTTP: using r->mem_pool retention counter for response buffers. 2018-04-03 16:28:26 +03:00
Andrey Zelenkov 151160c110 Tests: Perl script with syntax error. 2018-04-02 19:20:11 +03:00
Andrey Zelenkov 1583d659ab Tests: change alert skip in test_listeners_empty after RPC fixes. 2018-04-02 18:37:45 +03:00
sshaw 9cd4b2bff2 Ruby: correctly getting version from RbConfig::CONFIG.
This closes #90 PR on GitHub.
2018-04-02 18:05:34 +03:00
Valentin Bartenev f4cb476feb Version bump. 2018-04-02 17:42:36 +03:00
Andrey Zelenkov a01a98ce36 Tests: more Python tests. 2018-04-02 17:03:41 +03:00
Andrey Zelenkov efb71121b9 Tests: added Python test with iterator context. 2018-04-02 17:03:41 +03:00
Andrei Belov 001af51122 Generated Dockerfile for unit-ruby. 2018-04-02 16:10:07 +03:00
Andrei Belov aa8f2c3295 Added Ruby packaging support. 2018-04-02 15:48:33 +03:00
Andrey Zelenkov 2028f3a04b Tests: use "%Z" directive while parsing Date header. 2018-04-02 15:50:05 +03:00
Igor Sysoev 5177b085b1 nxt_lvlhsh_each() refactoring and nxt_lvlhsh_each_init(). 2018-03-29 16:35:42 +03:00
Igor Sysoev 5a9c23e2b4 Using nxt_lvlhsh_peek() for port hashes. 2018-03-29 16:35:38 +03:00
Igor Sysoev 7205bf4b86 Using nxt_lvlhsh_peek() and nxt_lvlhsh_retrieve(). 2018-03-29 16:35:36 +03:00
Igor Sysoev aad7752527 nxt_lvlhsh_retrieve(). 2018-03-29 16:35:32 +03:00
Igor Sysoev 8a4c8d64b2 nxt_lvlhsh_peek(). 2018-03-29 16:35:26 +03:00
Igor Sysoev bd451a50a9 Removed unused macros and functions. 2018-03-29 16:35:03 +03:00
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