Home
last modified time | relevance | path

Searched hist:12 (Results 1 – 25 of 451) sorted by relevance

12345678910>>...19

/unit/src/
H A Dnxt_conn_write.cdiff 1403:1cee885b7f10 Thu Mar 12 14:54:00 UTC 2020 Max Romanov <max.romanov@nginx.com> Using disk file to store large request body.

This closes #386 on GitHub.
diff 792:ba7bc97ad251 Fri Sep 28 12:12:00 UTC 2018 Igor Sysoev <igor@sysoev.ru> Fixed bug in socket write error handling.

The bug has been introduced in e3972a4a9c73.
diff 792:ba7bc97ad251 Fri Sep 28 12:12:00 UTC 2018 Igor Sysoev <igor@sysoev.ru> Fixed bug in socket write error handling.

The bug has been introduced in e3972a4a9c73.
diff 771:f349b2d68e75 Thu Sep 20 12:05:00 UTC 2018 Igor Sysoev <igor@sysoev.ru> Added SSL/TLS support on connection level.
diff 726:e3972a4a9c73 Thu Jul 12 15:29:00 UTC 2018 Igor Sysoev <igor@sysoev.ru> Fixed socket write error handling.
diff 494:7c83ddcc1c42 Wed Jan 24 12:16:00 UTC 2018 Sergey Kandaurov <pluknet@nginx.com> Fixed formatting in nxt_sprintf() and logging.
62:5e1efcc7b740 Wed Jun 14 12:18:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nxt_event_conn_... functions and structures have been renamed
to nxt_conn_...
H A Dnxt_conn_close.cdiff 521:93dc4a28dd37 Wed Feb 07 12:34:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Style fixes.
diff 109:8c3114bcbd3e Thu Jun 29 12:52:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Using static and constant linger structure.
diff 62:5e1efcc7b740 Wed Jun 14 12:18:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nxt_event_conn_... functions and structures have been renamed
to nxt_conn_...
53:0b10a73d4993 Wed May 31 12:26:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Skeleton of router configuration and request processing.
H A Dnxt_select_engine.cdiff 62:5e1efcc7b740 Wed Jun 14 12:18:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nxt_event_conn_... functions and structures have been renamed
to nxt_conn_...
12:477899a6661b Tue Feb 07 17:04:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Event engines refactoring.
H A Dnxt_stream_module.cdiff 493:745222d540a2 Wed Jan 24 12:16:00 UTC 2018 Sergey Kandaurov <pluknet@nginx.com> Using size_t for the field width type of the "%*s" specifier.
diff 62:5e1efcc7b740 Wed Jun 14 12:18:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nxt_event_conn_... functions and structures have been renamed
to nxt_conn_...
13:3a52b2c3d3f1 Wed Feb 22 12:09:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> I/O operations refactoring.
H A Dnxt_conn_connect.cdiff 1449:8bcb79f5d69d Wed Apr 08 12:15:00 UTC 2020 Valentin Bartenev <vbart@nginx.com> Removed unused code related to testing of address binding.
diff 494:7c83ddcc1c42 Wed Jan 24 12:16:00 UTC 2018 Sergey Kandaurov <pluknet@nginx.com> Fixed formatting in nxt_sprintf() and logging.
diff 493:745222d540a2 Wed Jan 24 12:16:00 UTC 2018 Sergey Kandaurov <pluknet@nginx.com> Using size_t for the field width type of the "%*s" specifier.
62:5e1efcc7b740 Wed Jun 14 12:18:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nxt_event_conn_... functions and structures have been renamed
to nxt_conn_...
H A Dnxt_pollset_engine.cdiff 62:5e1efcc7b740 Wed Jun 14 12:18:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nxt_event_conn_... functions and structures have been renamed
to nxt_conn_...
12:477899a6661b Tue Feb 07 17:04:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Event engines refactoring.
H A Dnxt_eventport_engine.cdiff 62:5e1efcc7b740 Wed Jun 14 12:18:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nxt_event_conn_... functions and structures have been renamed
to nxt_conn_...
12:477899a6661b Tue Feb 07 17:04:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Event engines refactoring.
H A Dnxt_kqueue_engine.cdiff 771:f349b2d68e75 Thu Sep 20 12:05:00 UTC 2018 Igor Sysoev <igor@sysoev.ru> Added SSL/TLS support on connection level.
diff 62:5e1efcc7b740 Wed Jun 14 12:18:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nxt_event_conn_... functions and structures have been renamed
to nxt_conn_...
diff 53:0b10a73d4993 Wed May 31 12:26:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Skeleton of router configuration and request processing.
diff 13:3a52b2c3d3f1 Wed Feb 22 12:09:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> I/O operations refactoring.
12:477899a6661b Tue Feb 07 17:04:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Event engines refactoring.
H A Dnxt_listen_socket.cdiff 1451:0a8840921fd0 Wed Apr 08 12:15:00 UTC 2020 Valentin Bartenev <vbart@nginx.com> Controller: improved handling of unix domain control socket.

One of the ways to detect Unit's startup and subsequent readiness to accept
commands relies on waiting for the control socket file to be created.
Earlier, it was unreliable due to a race condition between the client's
connect() and the daemon's listen() calls after the socket's bind() call.

Now, unix domain listening sockets are created with a nxt_listen_socket_create()
call as follows:

s = socket();
unlink("path/to/socket.tmp")
bind(s, "path/to/socket.tmp");
listen(s);
rename("path/to/socket.tmp", "path/to/socket");

This eliminates a time-lapse when the socket file is already created but nobody
is listening on it yet, which therefore prevents the condition described above.

Also, it allows reliably detecting whether the socket is being used or simply
wasn't cleaned after the daemon stopped abruptly. A successful connection to
the socket file means the daemon has been started; otherwise, the file can be
overwritten.
diff 1450:d431a2d91caa Wed Apr 08 12:15:00 UTC 2020 Valentin Bartenev <vbart@nginx.com> Controller: fixed cleaning up of control socket file in some cases.

Previously, the unix domain control socket file might have been left
in the file system after a failed nxt_listen_socket_create() call.
diff 1449:8bcb79f5d69d Wed Apr 08 12:15:00 UTC 2020 Valentin Bartenev <vbart@nginx.com> Removed unused code related to testing of address binding.
diff 771:f349b2d68e75 Thu Sep 20 12:05:00 UTC 2018 Igor Sysoev <igor@sysoev.ru> Added SSL/TLS support on connection level.
diff 494:7c83ddcc1c42 Wed Jan 24 12:16:00 UTC 2018 Sergey Kandaurov <pluknet@nginx.com> Fixed formatting in nxt_sprintf() and logging.
diff 493:745222d540a2 Wed Jan 24 12:16:00 UTC 2018 Sergey Kandaurov <pluknet@nginx.com> Using size_t for the field width type of the "%*s" specifier.
diff 62:5e1efcc7b740 Wed Jun 14 12:18:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nxt_event_conn_... functions and structures have been renamed
to nxt_conn_...
diff 13:3a52b2c3d3f1 Wed Feb 22 12:09:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> I/O operations refactoring.
H A Dnxt_poll_engine.cdiff 494:7c83ddcc1c42 Wed Jan 24 12:16:00 UTC 2018 Sergey Kandaurov <pluknet@nginx.com> Fixed formatting in nxt_sprintf() and logging.
diff 62:5e1efcc7b740 Wed Jun 14 12:18:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nxt_event_conn_... functions and structures have been renamed
to nxt_conn_...
12:477899a6661b Tue Feb 07 17:04:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Event engines refactoring.
H A Dnxt_sendbuf.cdiff 521:93dc4a28dd37 Wed Feb 07 12:34:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Style fixes.
diff 352:47649fbbcb53 Wed Oct 04 12:03:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Port message fragmentation supported.

- Each sendmsg() transmits no more than port->max_size payload data.
- Longer buffers are fragmented and send using multiple sendmsg() calls.
- On receive side, buffers are connected in chain.
- Number of handler calls is the same as number of nxt_port_socket_write()
calls.
- nxt_buf_make_plain() function introduced to make single plain buffer from
the chain.
diff 62:5e1efcc7b740 Wed Jun 14 12:18:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nxt_event_conn_... functions and structures have been renamed
to nxt_conn_...
diff 42:def41906e4a5 Fri May 12 17:32:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Using shared memory to send data via nxt_port.

Usage:
b = nxt_port_mmap_get_buf(task, port, size);
b->mem.free = nxt_cpymem(b->mem.free, data, size);
nxt_port_socket_write(task, port, NXT_PORT_MSG_DATA, -1, 0, b);
diff 14:556c5643cb8d Wed Feb 22 12:10:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Port changes.
diff 13:3a52b2c3d3f1 Wed Feb 22 12:09:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> I/O operations refactoring.
H A Dnxt_linux_sendfile.cdiff 494:7c83ddcc1c42 Wed Jan 24 12:16:00 UTC 2018 Sergey Kandaurov <pluknet@nginx.com> Fixed formatting in nxt_sprintf() and logging.
diff 13:3a52b2c3d3f1 Wed Feb 22 12:09:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> I/O operations refactoring.
H A Dnxt_file.cdiff 521:93dc4a28dd37 Wed Feb 07 12:34:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Style fixes.
diff 494:7c83ddcc1c42 Wed Jan 24 12:16:00 UTC 2018 Sergey Kandaurov <pluknet@nginx.com> Fixed formatting in nxt_sprintf() and logging.
diff 13:3a52b2c3d3f1 Wed Feb 22 12:09:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> I/O operations refactoring.
H A Dnxt_socketpair.cdiff 1996:35873fa78fed Tue Nov 09 12:48:00 UTC 2021 Tiago Natel de Moura <t.nateldemoura@f5.com> Introduced SCM_CREDENTIALS / SCM_CREDS in the socket control msgs.
diff 1003:a7122e3c6e06 Tue Mar 05 12:38:00 UTC 2019 Max Romanov <max.romanov@nginx.com> Handling ENOBUFS error same was as EAGAIN.

Unlike EAGAIN, ENOBUFS returned on OSX when trying to send many relatively
small (64 bytes) fragments.

Found during investigation of #167 issue on GitHub.
diff 13:3a52b2c3d3f1 Wed Feb 22 12:09:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> I/O operations refactoring.
diff 12:477899a6661b Tue Feb 07 17:04:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Event engines refactoring.
H A Dnxt_signal.cdiff 53:0b10a73d4993 Wed May 31 12:26:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Skeleton of router configuration and request processing.
diff 12:477899a6661b Tue Feb 07 17:04:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Event engines refactoring.
H A Dnxt_macosx_sendfile.cdiff 62:5e1efcc7b740 Wed Jun 14 12:18:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nxt_event_conn_... functions and structures have been renamed
to nxt_conn_...
diff 13:3a52b2c3d3f1 Wed Feb 22 12:09:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> I/O operations refactoring.
H A Dnxt_sendbuf.hdiff 771:f349b2d68e75 Thu Sep 20 12:05:00 UTC 2018 Igor Sysoev <igor@sysoev.ru> Added SSL/TLS support on connection level.
diff 352:47649fbbcb53 Wed Oct 04 12:03:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Port message fragmentation supported.

- Each sendmsg() transmits no more than port->max_size payload data.
- Longer buffers are fragmented and send using multiple sendmsg() calls.
- On receive side, buffers are connected in chain.
- Number of handler calls is the same as number of nxt_port_socket_write()
calls.
- nxt_buf_make_plain() function introduced to make single plain buffer from
the chain.
diff 62:5e1efcc7b740 Wed Jun 14 12:18:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nxt_event_conn_... functions and structures have been renamed
to nxt_conn_...
diff 42:def41906e4a5 Fri May 12 17:32:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Using shared memory to send data via nxt_port.

Usage:
b = nxt_port_mmap_get_buf(task, port, size);
b->mem.free = nxt_cpymem(b->mem.free, data, size);
nxt_port_socket_write(task, port, NXT_PORT_MSG_DATA, -1, 0, b);
diff 13:3a52b2c3d3f1 Wed Feb 22 12:09:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> I/O operations refactoring.
/unit/pkg/rpm/
H A DMakefile.rubydiff 1144:b651ff72ffe0 Fri Aug 23 12:18:00 UTC 2019 Andrei Belov <defan@nginx.com> Packages: bump release for 1.10.0-2.
diff 912:23693ac60089 Thu Jan 24 12:18:00 UTC 2019 Andrei Belov <defan@nginx.com> Packages: fixed control socket path after 7012b4fd5113.
diff 788:5e8b61d5e99e Thu Sep 27 12:05:00 UTC 2018 Andrei Belov <defan@nginx.com> Packages: updated to 1.4-2.
diff 787:1f5e8efe6934 Thu Sep 27 12:04:00 UTC 2018 Andrei Belov <defan@nginx.com> Packages: adjusted post-install banners.
600:694767e0b8c9 Mon Apr 02 12:48:00 UTC 2018 Andrei Belov <defan@nginx.com> Added Ruby packaging support.
H A DMakefile.python36diff 1301:350212899f14 Mon Dec 02 12:09:00 UTC 2019 Andrei Belov <defan@nginx.com> Packages: added Python 3 support on RHEL/CentOS 7.
diff 1144:b651ff72ffe0 Fri Aug 23 12:18:00 UTC 2019 Andrei Belov <defan@nginx.com> Packages: bump release for 1.10.0-2.
diff 912:23693ac60089 Thu Jan 24 12:18:00 UTC 2019 Andrei Belov <defan@nginx.com> Packages: fixed control socket path after 7012b4fd5113.
diff 788:5e8b61d5e99e Thu Sep 27 12:05:00 UTC 2018 Andrei Belov <defan@nginx.com> Packages: updated to 1.4-2.
diff 787:1f5e8efe6934 Thu Sep 27 12:04:00 UTC 2018 Andrei Belov <defan@nginx.com> Packages: adjusted post-install banners.
H A DMakefile.python34diff 1144:b651ff72ffe0 Fri Aug 23 12:18:00 UTC 2019 Andrei Belov <defan@nginx.com> Packages: bump release for 1.10.0-2.
diff 912:23693ac60089 Thu Jan 24 12:18:00 UTC 2019 Andrei Belov <defan@nginx.com> Packages: fixed control socket path after 7012b4fd5113.
diff 788:5e8b61d5e99e Thu Sep 27 12:05:00 UTC 2018 Andrei Belov <defan@nginx.com> Packages: updated to 1.4-2.
diff 787:1f5e8efe6934 Thu Sep 27 12:04:00 UTC 2018 Andrei Belov <defan@nginx.com> Packages: adjusted post-install banners.
/unit/pkg/deb/
H A DMakefile.rubydiff 1144:b651ff72ffe0 Fri Aug 23 12:18:00 UTC 2019 Andrei Belov <defan@nginx.com> Packages: bump release for 1.10.0-2.
diff 788:5e8b61d5e99e Thu Sep 27 12:05:00 UTC 2018 Andrei Belov <defan@nginx.com> Packages: updated to 1.4-2.
diff 787:1f5e8efe6934 Thu Sep 27 12:04:00 UTC 2018 Andrei Belov <defan@nginx.com> Packages: adjusted post-install banners.
600:694767e0b8c9 Mon Apr 02 12:48:00 UTC 2018 Andrei Belov <defan@nginx.com> Added Ruby packaging support.
H A DMakefile.perldiff 1144:b651ff72ffe0 Fri Aug 23 12:18:00 UTC 2019 Andrei Belov <defan@nginx.com> Packages: bump release for 1.10.0-2.
diff 788:5e8b61d5e99e Thu Sep 27 12:05:00 UTC 2018 Andrei Belov <defan@nginx.com> Packages: updated to 1.4-2.
diff 787:1f5e8efe6934 Thu Sep 27 12:04:00 UTC 2018 Andrei Belov <defan@nginx.com> Packages: adjusted post-install banners.
/unit/src/java/nginx/unit/
H A DRequest.javadiff 1157:7ae152bda303 Thu Sep 05 12:27:00 UTC 2019 Max Romanov <max.romanov@nginx.com> Java: introducing websocket support.
diff 1121:c0468d3daf98 Wed Aug 14 12:24:00 UTC 2019 Max Romanov <max.romanov@nginx.com> Java: implementing multipart message support.

This closes #265 issue on GitHub.
diff 1054:70837ad51a13 Thu May 30 12:02:00 UTC 2019 Max Romanov <max.romanov@nginx.com> Java: fixing request scheme using 'tls' flag.
/unit/auto/
H A Dhelpdiff 1403:1cee885b7f10 Thu Mar 12 14:54:00 UTC 2020 Max Romanov <max.romanov@nginx.com> Using disk file to store large request body.

This closes #386 on GitHub.
diff 1056:9186cc03d8b2 Thu May 30 12:02:00 UTC 2019 Max Romanov <max.romanov@nginx.com> Java: added java module in configure help.
diff 805:9d08482cca9c Wed Oct 17 12:52:00 UTC 2018 Max Romanov <max.romanov@nginx.com> Installing libunit headers and static library.
diff 795:b1af612217d6 Mon Oct 01 12:06:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Mention of --openssl configure option in help.

This closes #171 issue on GitHub.
Thanks to 洪志道 (Hong Zhi Dao).
diff 510:4979fe09d9cd Wed Jan 31 12:47:00 UTC 2018 Alexander Borisov <alexander.borisov@nginx.com> Added Perl support.
/unit/src/nodejs/unit-http/
H A Dhttp_server.jsdiff 1865:3c551b9721df Wed May 12 09:26:00 UTC 2021 Oisin Canty <o.canty@f5.com> Node.js: a shim for overriding "http" and "websocket" modules.

Also added stubs for Server.address()
This was done to prevent crashes in some popular frameworks like express

Supports both CommonJS and the new ES Modules system syntax e.g:

app.js:
const http = require('http')

app.mjs:
import http from "http"

Usage on Node 14.16.x and higher:
{
"type": "external",
"processes": {"spare": 0},
"working_directory": '/project',
"executable": "/usr/bin/env",
"arguments": [
"node",
"--loader",
"unit-http/require_shim.mjs"
"--require",
"unit-http/require_shim",
"app.js"
]
}

Usage on Node 14.15.x and lower:
{
"type": "external",
"processes": {"spare": 0},
"working_directory": '/project',
"executable": "/usr/bin/env",
"arguments": [
"node",
"--require",
"unit-http/require_shim",
"app.js"
]
}
diff 880:41f561b3a178 Wed Dec 19 12:57:00 UTC 2018 Alexander Borisov <alexander.borisov@nginx.com> Node.js: removed value checking for headers.
diff 879:f74d4dd9c3db Wed Dec 19 12:57:00 UTC 2018 Alexander Borisov <alexander.borisov@nginx.com> Node.js: removed unused _implicitHeader() function.
diff 875:dae402cb243f Wed Dec 19 12:56:00 UTC 2018 Alexander Borisov <alexander.borisov@nginx.com> Node.js: checking uniqueness of HTTP headers for different case.
diff 874:5df32621af19 Wed Dec 19 12:56:00 UTC 2018 Alexander Borisov <alexander.borisov@nginx.com> Node.js: calling write callback asynchronously.
diff 873:89f7d6b67fa7 Wed Dec 19 12:56:00 UTC 2018 Alexander Borisov <alexander.borisov@nginx.com> Node.js: style fixes.

No functional changes.
diff 871:3c679d901524 Wed Dec 19 12:56:00 UTC 2018 Alexander Borisov <alexander.borisov@nginx.com> Node.js: napi_call_function() replaced with napi_make_callback().

The sequence of napi_open_callback_scope(),
napi_call_function(), and napi_close_callback_scope() functions calls
executes the provided JS code and all functions enqueued by
process.nextTick() and Promises during this execution.
diff 870:1e008ef94f43 Wed Dec 19 12:55:00 UTC 2018 Alexander Borisov <alexander.borisov@nginx.com> Node.js: changed the 'data' event calling sequence for the request.

The problem is caused by Promises' inconsistency.
The 'date' event could have been triggered before the user has started
listening for it. To resolve the issue, we override the 'on' method of
the request's emitter.
diff 869:1340e3539362 Wed Dec 19 12:55:00 UTC 2018 Alexander Borisov <alexander.borisov@nginx.com> Node.js: buffering HTTP headers before writing the body.
diff 843:4a352e2ce73b Thu Nov 15 12:21:00 UTC 2018 Alexander Borisov <alexander.borisov@nginx.com> Node.js: fixed handling of response header fields.

This fixes two issues:

- values for mutiple header fields with the same name
passed as arrays were converted to string;

- the type of field value wasn't preserved as required
by specification.

12345678910>>...19