Commit Graph

287 Commits

Author SHA1 Message Date
Igor Sysoev
26dfd4da97 Added CHANGES file. 2017-09-06 19:14:28 +03:00
Max Romanov
999de31e25 Spreading user validation for php and go apps. 2017-09-06 08:59:18 -07:00
Nick Shadrin
a89b3cf8e9 Updated README.md, added info about integration with NGINX. 2017-09-06 08:56:27 -07:00
Igor Sysoev
eb1b4b99b1 Shortened titles in README.md and dispensable information. 2017-09-06 18:40:06 +03:00
Igor Sysoev
781726053f Added LICENSE and NOTICE files. 2017-09-06 18:26:37 +03:00
Igor Sysoev
37c16d1801 Fixed building by Sun C on Solaris. 2017-09-06 17:13:18 +03:00
Max Romanov
05f93d931b Fixed go package installation instructions. 2017-09-05 22:31:57 -07:00
Max Romanov
76f3d7435f Added software installation instructions for CentOS. 2017-09-05 18:04:46 -07:00
Igor Sysoev
c4cba21a47 Added README.md. 2017-09-06 02:30:55 +03:00
Igor Sysoev
58907888e5 Style fixes. 2017-09-06 02:30:55 +03:00
Igor Sysoev
22ae3d4ff5 Controller: validating user and group names. 2017-09-06 02:30:23 +03:00
Max Romanov
f0723995a7 Fixing request id logging. 2017-09-05 15:56:37 -07:00
Max Romanov
0f9f0ca522 Fixing racing condition on app port release/request.
Application free ports is a queue (double linked list) protected with mutex.
After successfull request parsing, each router thread (1) tries to get port
from this list. If this list is empty, (2) start worker request posted to main
router thread. Another thread may release port between (1) and (2).

This fix adds an attempt to get port from free ports list at the beginning of
start worker action in main thread.
2017-09-05 15:56:35 -07:00
Max Romanov
c937b8434a Double connection close attempt fix. 2017-09-05 10:22:46 -07:00
Max Romanov
1429cacd17 Using CSTRZ mapping type for go executable. 2017-09-05 10:22:45 -07:00
Max Romanov
f1685e371f Introducing working_directory directive for applications. 2017-09-05 10:22:44 -07:00
Andrei Belov
db6d2b9687 Fixed permissions for Go sources.
In particular, it resolves a number of errors and warnings
reported by rpmlint(1).
2017-09-04 19:09:34 +03:00
Sergey Kandaurov
d57ec94a3f Initialized task in utf8 unit test, fixes segfault in debug build. 2017-09-04 17:32:29 +03:00
Igor Sysoev
ff515f4312 Added SERVER_ADDR parameter for Python and PHP modules. 2017-09-01 07:54:01 +03:00
Igor Sysoev
9941b0cd65 Fixed format specifier. 2017-08-31 21:44:37 +03:00
Igor Sysoev
1f95673713 Setting build directory with variable instead of configure option. 2017-08-31 21:44:30 +03:00
Max Romanov
ac7218e335 Introducing install & uninstall Makefile targets. 2017-08-31 11:42:13 -07:00
Max Romanov
6eb4a41364 Multiplexing different requests in single app port. 2017-08-31 11:42:12 -07:00
Max Romanov
fc687e0508 Default value 1 for number of workers. 2017-08-31 11:42:11 -07:00
Sergey Kandaurov
db85a9a015 Go: fixed splitting recipe line with newer gmake.
Use double quotes to quote a string with the backslash/newline pair.
Newer gmake versions, such as GNU Make 4.1, do not remove the backslash
from a string quoted with single quotes, which results in an extraneous
backslash passed to the shell and, eventually, to the Go compiler.
2017-08-31 18:21:22 +03:00
Sergey Kandaurov
f27ed60a09 PHP SAPI: typo fixed. 2017-08-31 15:16:18 +03:00
Igor Sysoev
738ca54ded Changed modules names format. 2017-08-31 00:42:16 +03:00
Igor Sysoev
f0e9e3ace9 nginext has been renamed to unit. 2017-08-31 00:42:16 +03:00
Igor Sysoev
6160683544 Introduced module compatibility vector. 2017-08-31 00:42:12 +03:00
Igor Sysoev
3f10b05de9 Moving generating CGO header file to the make stage. 2017-08-31 00:42:08 +03:00
Max Romanov
e06872e2f2 Avoid nxt_port_mmap_header_t redefinition warning. 2017-08-30 14:34:31 -07:00
Max Romanov
d3f19d98ca Avoid nxt_go_process_t redefinition warning. 2017-08-30 12:08:29 -07:00
Max Romanov
a33145d614 ListenAndServe changed to be compatible with http.ListenAndServe. 2017-08-30 11:50:33 -07:00
Max Romanov
9537821f3f Send remote address to go application. 2017-08-30 11:50:29 -07:00
Max Romanov
9791b09ce3 Fixed pid_file pattern misprint introduced in 231:6832cdee961e. 2017-08-30 11:50:16 -07:00
Igor Sysoev
a812579842 Adding a missing slash to the tail of path set by --modules
command line option.
2017-08-30 21:44:39 +03:00
Igor Sysoev
740dc67ec8 The discovery process did not quit if no modules were not found. 2017-08-30 03:18:56 +03:00
Valentin Bartenev
55fe80600c Controller: resending configuration to router after its restart.
Now router crash can be survived with less damage.
2017-08-30 03:10:13 +03:00
Valentin Bartenev
f528cb393a Controller: waiting for router before start to accept connections.
Previously, reconfiguration might fail right after the daemon start
if the router process wasn't ready yet.
2017-08-30 03:10:13 +03:00
Valentin Bartenev
e21dbf89e6 Controller: correct handling of missing router port.
There's no router port if the router process is just crashed
or hasn't started yet.
2017-08-30 03:09:06 +03:00
Igor Sysoev
cdc7e4479f Lib unit tests have been renamed to tests. 2017-08-30 00:31:02 +03:00
Max Romanov
92f3b85298 The process type enum exposed to go module. 2017-08-29 14:18:00 -07:00
Max Romanov
6de7cc8634 Fixed debug message broken in e8da77a2c293. 2017-08-29 14:17:59 -07:00
Max Romanov
5b879f0e2b Using NXT_GO variable instead of explicit go. 2017-08-29 11:37:49 -07:00
Max Romanov
52ae0e69c1 Store and use NXT_LIBRT for go module. 2017-08-29 11:33:35 -07:00
Max Romanov
73dc76b0bf Separation of module prerequisites for 'all' target in Makefile.
To avoid using sed -i.
2017-08-29 11:33:34 -07:00
Igor Sysoev
9d487df10d The master process has been renamed to the main process. 2017-08-29 02:59:35 +03:00
Igor Sysoev
946867febe Improved English. 2017-08-29 02:22:22 +03:00
Valentin Bartenev
1a5ec7fd08 Improved reconfiguration requests serialization.
Previously, only applying of updated configuration was serialized,
while the changes themselves could be done in parallel on the same
configuration.  That resulted in inconsistent behaviour.
2017-08-28 10:20:40 +03:00
Valentin Bartenev
3ab49d14c0 Fixed nxt_job_file_read_data().
Obviously it should read data into the free region of buffer.
The "free" pointer is respectively shifted in the code below.
2017-08-28 10:20:40 +03:00