summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)AuthorFilesLines
2020-10-13Using union instead of "void *".Igor Sysoev1-102/+110
2020-10-13Using C99 style declaration.Igor Sysoev1-563/+423
2020-10-13Reordering declarations.Igor Sysoev1-296/+317
2020-10-13Fixed building with Python 3.9.Valentin Bartenev2-2/+3
PyUnicode_GET_SIZE() in deprecated since 3.3 and will be removed in 3.12. In version 3.9 it was explicitly marked by deprecation warning causing compilation error with Unit. PyUnicode_GET_LENGTH() must be used instead.
2020-10-13Version bump.Valentin Bartenev1-2/+2
2020-10-08Adjusted tag 1.20.0 to include 0e985b300673.Valentin Bartenev1-1/+1
2020-10-08Updated 1.20.0 CHANGES to include pytest migration.1.20.0Valentin Bartenev2-0/+8
2020-10-08Added tag 1.20.0 for changeset f7e9cf490512Valentin Bartenev1-0/+1
2020-10-08Generated Dockerfiles for Unit 1.20.0.Valentin Bartenev9-9/+9
2020-10-08Added version 1.20.0 CHANGES.Valentin Bartenev2-0/+166
2020-09-22Regenerated dockerfiles.Konstantin Pavlov9-1/+112
2020-09-22Ensure docker images are using latest versions of base OS packages.Konstantin Pavlov1-3/+6
2020-09-22Added jsc11 docker image.Konstantin Pavlov2-2/+6
2020-10-06PHP: compatibility with 8.0.0 RC1.Valentin Bartenev4-10/+40
This closes #474 PR on GitHub.
2020-10-07Tests: minor fixes.Andrei Zeliankou46-95/+125
2020-10-07Tests: fixed loading selected module version.Valentin Bartenev3-3/+15
Previously, for PHP, Ruby, and Perl the latest version was always loaded in multi-version tests.
2020-10-07Router: fixed "not empty" pattern matching.Valentin Bartenev2-4/+15
The "!" pattern should be opposite to "", i.e. match only non-empty values. But after 3c00af54b937 it was equal to "!*", which is wrong.
2020-10-06Tests: fixed tests to run as root.Andrei Zeliankou2-8/+4
2020-10-06Removing a meaningless warning message.Max Romanov1-4/+0
Data in the queue and the socket are transmitted independently; special READ_QUEUE and READ_SOCKET message types are used for synchronization. The warning was accidentally committed with changeset 1d84b9e4b459.
2020-10-05Tests: pretty versions output for multi-version tests.Max Romanov1-3/+3
2020-10-05Tests: added websocket test with long length.Andrei Zeliankou1-0/+12
2020-10-05Tests: added ASGI Lifespan.Andrei Zeliankou5-0/+114
2020-10-02Fixed comment.Igor Sysoev1-1/+1
Thanks to 洪志道 (Hong Zhi Dao).
2020-10-01Tests: added ASGI HTTP applications.Max Romanov9-0/+598
2020-10-01Tests: added ASGI WebSocket.Max Romanov4-1/+1476
2020-10-01Python: ASGI server introduced.Max Romanov11-29/+3728
This closes #461 issue on GitHub.
2020-10-01Publishing libunit's malloc() and free() wrappers for apps.Max Romanov2-49/+57
2020-09-09PHP: fixed "rootfs" isolation dependency on system mounts.Tiago Natel de Moura4-135/+138
2020-10-01Tests: minor fixes.Andrei Zeliankou10-76/+89
Fixed temporary dir removing. Fixed printing path to log. Module checks moved to the separate file.
2020-09-30Tests: fixed test_static_space_in_name.Andrei Zeliankou1-1/+1
2020-09-30Fixing router connection pool leakage.Max Romanov1-1/+4
The connection's local socket address is allocated from the connection pool before the request is passed to the application; however, with keep-alive connections, this field was unconditionally reset by a socket configuration value that could be NULL. For the next request, the address was allocated again from the same connection pool. Nonetheless, all leaked addresses were released when the connection was closed. The issue introduced in changeset 5c7dd85fabd5.
2020-09-30Fixing leakage caused by incorrect in_hash flag cleanup.Max Romanov1-1/+3
Large-bodied requests are added to the request hash to be found when the body arrives. However, changeset 1d84b9e4b459 introduced a bug: the 'in_hash' flag, used to remove the request from the hash at request release, was cleared after the first successful request lookup. As a result, the entry was never removed.
2020-09-29MIME: added AVIF and APNG image formats.Valentin Bartenev1-1/+4
AVIF is a modern image format based on the AV1 video codec. It generally has better compression than other widely used formats (WebP, JPEG, PNG, and GIF) and is designed to supersede them. Support was already added to the latest version of Chrome. APNG extends PNG to permit animated images that work similarly to animated GIF. It's supported by most modern browsers. Also removed duplicated ".svg" entry.
2020-09-29Wrapping libunit's malloc() and free() calls for logging purposes.Max Romanov3-65/+98
This change aids heap usage analysis in applications. The alloc and free functions are also required for lvlhash due to the upcoming threading support, because using main nxt_memalign() and nxt_free() isn't safe in a multithreaded app environment. The reason is that these functions may use thread-local structures which aren't initialized properly in applications.
2020-09-29Fixing request buffer memory leakage in router.Max Romanov1-0/+3
The issue was introduced in changeset 1d84b9e4b459. The request buffer was transferred via the shared application queue, but the buffer position and the 'sent' flag were not updated after the buffer had been sent.
2020-09-29Supporting HTTP/1.0 keep-alive.Max Romanov1-1/+8
The Apache HTTP server benchmarking tool, ab, issues HTTP/1.0 requests with the 'Connection: Keep-Alive' header and expects a 'Connection: Keep-Alive' header in the response.
2020-09-27Tests: tuned delay in test_settings_idle_timeout_2.Andrei Zeliankou1-1/+1
2020-09-27Tests: added pytest.ini.Andrei Zeliankou1-0/+3
2020-09-24Tests: prerequisites check improved by using callable.Max Romanov1-15/+23
This is required for more flexible Python version check since ASGI works for Python 3.5+. Version check via 'startswith()' function removed as not consistent.
2020-09-22Tests: introduced module name configuration.Max Romanov1-3/+10
Also fixed problem with "/" in application name.
2020-09-22Tests: improved response receiving while upgrade.Max Romanov1-4/+1
The patch required to process non-101 response.
2020-09-22Tests: using dict.get() method with default value.Max Romanov1-18/+9
No functional changes. Only code readability improved.
2020-09-21Tests: added variable test with nonexistent upstream.Andrei Zeliankou1-0/+23
2020-09-21Tests: added test for "idle_timeout" with empty payload.Andrei Zeliankou1-0/+18
2020-09-21Tests: added multiple headers concatenation test.Max Romanov1-9/+13
2020-09-21Tests: changing Python application callable name.Max Romanov2-0/+35
2020-09-18Added .hgignore file.Andrei Zeliankou1-0/+6
2020-09-18Updated racially charged language in messages and comments.Artem Konev2-4/+4
2020-09-18Python: app module callable name configuration.Max Romanov4-5/+21
Now it is possible to specify the name of the application callable using optional parameter 'callable'. Default value is 'application'. This closes #290 issue on GitHub.
2020-09-18Fixed segmentation fault during reconfiguration.Igor Sysoev1-7/+3
If idle connection was closed before h1proto had been allocated then c->socket.data is NULL. This happens if nxt_h1p_idle_response() is called by nxt_h1p_idle_close(). However, h1p->conn_write_tail is used only in nxt_h1p_request_send() that would not be called after nxt_h1p_idle_response(). The bug was introduced in f237e8c553fd.