summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_controller.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2018-04-08Controller: fixed a memory leak when PUT operation failed.Valentin Bartenev1-0/+2
Thanks to 洪志道 (Hong Zhi Dao).
2018-03-13Capitalization in the "Server" field.Valentin Bartenev1-2/+2
2018-03-05Reduced number of critical log levels.Valentin Bartenev1-6/+5
2017-12-25HTTP parser: reworked header fields handling.Valentin Bartenev1-24/+22
2017-11-27A number of engine connections is decreased on connection close.Igor Sysoev1-3/+1
2017-10-25Checking the result of shared memory buffer allocation.Max Romanov1-0/+3
This closes #57 issue on GitHub.
2017-10-18Router: fixed segfault after configuration change.Igor Sysoev1-1/+1
2017-10-10Basic validation errors.Valentin Bartenev1-18/+67
2017-10-04Using port 'post' facility to proxy remove pid message to workers.Max Romanov1-1/+1
Remove pid proxying to worker engines implementation was originally overcomplicated. Memory pool and 2 engine posts (there and back again) are optimized out and replaced with band new nxt_port_post() call.
2017-10-04Using engine memiory pool for port write allocations.Max Romanov1-1/+1
To allow use port from different threads, the first step is to avoid using port's memory pool for temporary allocations required to send data through the port. Including but not limited by: - buffers for data; - send message structures; - new mmap fd notifications; It is still safe to use port memory pool for incoming buffers allocations because recieve operation bound to single thread.
2017-09-27Event engine memory cache for nxt_sockaddr_t.Igor Sysoev1-0/+10
Introducing event engine memory cache and using the cache for nxt_sockaddr_t structures.
2017-09-15Introducing named port message handlers to avoid misprints.Max Romanov1-14/+9
2017-09-15Fixed port handlers arrays.Valentin Bartenev1-0/+1
2017-09-10Configuration persistence.Valentin Bartenev1-0/+87
Now configuration survives server reloads.
2017-09-14Fixed textual socket name lengths and Unix domain sockaddr length.Igor Sysoev1-3/+2
2017-08-31nginext has been renamed to unit.Igor Sysoev1-2/+2
2017-08-30Controller: resending configuration to router after its restart.Valentin Bartenev1-66/+116
Now router crash can be survived with less damage.
2017-08-30Controller: waiting for router before start to accept connections.Valentin Bartenev1-12/+48
Previously, reconfiguration might fail right after the daemon start if the router process wasn't ready yet.
2017-08-30Controller: correct handling of missing router port.Valentin Bartenev1-11/+41
There's no router port if the router process is just crashed or hasn't started yet.
2017-08-29The master process has been renamed to the main process.Igor Sysoev1-1/+1
2017-08-28Improved reconfiguration requests serialization.Valentin Bartenev1-81/+49
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-26Added configure and command line option --control.Igor Sysoev1-16/+0
2017-08-13Fixed building by GCC after 7d1017bd0f6c.Valentin Bartenev1-1/+1
2017-08-11Controller: more HTTP headers and detailed JSON parsing errors.Valentin Bartenev1-116/+238
2017-08-04Fixed building without debug after c1ae75b4e17c and 6281674ecf4f.Valentin Bartenev1-6/+2
2017-08-02Using port rpc in controller->router configuration update.Max Romanov1-10/+24
2017-08-02Added bit flags to type parameter of nxt_port_socket_write().Max Romanov1-1/+2
NXT_PORT_MSG_LAST - mark message as last; NXT_PORT_MSG_CLOSE_FD - close fd right after send; Type constants altered to include last flag for single buffer messages. Last sign is critical for coming port RPC layer. Handlers unregistered on last message. Create sync buffer is not convenient, extra parameter is better.
2017-07-21Fixed building without debug.Valentin Bartenev1-4/+2
2017-07-12New process port exchange changed. READY message type introduced.Max Romanov1-8/+5
Application process start request DATA message from router to master. Master notifies router via NEW_PORT message after worker process become ready.
2017-07-12Controller: proper reconfiguration requests handling.Valentin Bartenev1-43/+136
Now controller serializes all reconfiguration requests and waits for result from router.
2017-07-10Controller: passing full configuration to router.Valentin Bartenev1-170/+6
2017-07-06Controller: sending JSON configuration to router.Valentin Bartenev1-32/+210
2017-07-06Router: read configuration from port.Max Romanov1-0/+32
Controller: stub to send configuration from POST body "as is" to router.
2017-07-05Configuration: basic validation of schema.Valentin Bartenev1-2/+16
2017-07-05Complex target parser copied from NGINX.Max Romanov1-8/+1
nxt_app_request_header_t fields renamed: - 'path' renamed to 'target'. - 'path_no_query' renamed to 'path' and contains parsed value.
2017-06-28Controller: fixed reading of request body.Valentin Bartenev1-13/+15
2017-06-28Configuration: reduced names of structures, functions, and macros.Valentin Bartenev1-37/+32
2017-06-28Setting listen socket fields lost in changeset 10688b89aa16.Igor Sysoev1-0/+2
2017-06-23Configuration printing functions splitted in two parts.Valentin Bartenev1-3/+2
Requested by Igor.
2017-06-23Renames and reordering of parameters in configuration parser functions.Valentin Bartenev1-13/+14
Requested by Igor.
2017-06-20HTTP parser: reduced memory consumption of header fields list.Valentin Bartenev1-4/+5
2017-06-20Using new memory pool implementation.Igor Sysoev1-28/+18
2017-06-14nxt_event_conn_... functions and structures have been renamedIgor Sysoev1-33/+33
to nxt_conn_...
2017-06-13HTTP parser: decoupled header fields processing.Valentin Bartenev1-13/+25
2017-06-06C99 style declaration of connection states.Igor Sysoev1-38/+21
2017-06-06The controller did not work because of changes in the previousIgor Sysoev1-1/+1
changeset.
2017-05-30Controller: support for partial PUT and DELETE operations.Valentin Bartenev1-51/+152
2017-05-26Style and a trivial fix.Valentin Bartenev1-1/+1
2017-05-18Controller: partial retrieving of configuration.Valentin Bartenev1-2/+23
2017-05-16Controller: pretty-printing of JSON responses.Valentin Bartenev1-13/+46