summaryrefslogtreecommitdiffhomepage
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-09-25Style fixes.Igor Sysoev1-4/+5
2017-09-25Checking mallopt() during configure.Max Romanov1-1/+1
mallopt() is absent on Alpine musl.
2017-09-22Removed fibers from compilation.Valentin Bartenev6-5/+22
It's not used anyway, but breaks building with musl. This closes issue #5 on GitHub.
2017-09-18Fixing shared memory thread safety issue.Max Romanov4-2/+13
Do not reuse shared memory segment with different port until this segment successfully received and indexed on other side. However, segment can be used to transfer data via the port it was sent at any time.
2017-09-16Fixed memory leak caused by mempool related to request context.Valentin Bartenev1-7/+3
The previous attempt of fixing this in e5a65b58101f hasn't been really successful, because the actual memory leak was caused not by the request parse context itself, but its memory pool.
2017-09-15Go: Fixed a bug introduced in the previous changeset.Igor Sysoev1-1/+1
2017-09-15Introducing named port message handlers to avoid misprints.Max Romanov10-147/+135
2017-09-15Fixing memory leak of request parse context.Max Romanov3-19/+38
2017-09-15Introducing application timeout.Max Romanov13-326/+589
2017-09-15Fixed port handlers arrays.Valentin Bartenev2-0/+4
2017-09-15Router: more logical code order change.Igor Sysoev1-2/+2
Updating the router engines list before posting jobs to worker thread engines is more logical because worker threads may exit after the posting. However, the previous code was safe because an engine is freed by the router main thread after worker its thread has exited.
2017-09-14Router: fixed segmentation fault.Igor Sysoev2-10/+38
The router process exited abnormally on reconfiguration if number of worker threads had been decreased on the previous reconfiguration. Besides the list of router engines should be updated only after a new configuration joints have been prepared for all engines.
2017-09-10Configuration persistence.Valentin Bartenev6-2/+234
Now configuration survives server reloads.
2017-09-14Router: worker threads should quit only if the main thread hasIgor Sysoev1-1/+54
requested this.
2017-09-14Fixed textual socket name lengths and Unix domain sockaddr length.Igor Sysoev7-43/+79
2017-09-12Fixed error messages grammar.Nick Shadrin1-49/+48
2017-09-08Fixed a memory leak.Andrei Vagin1-0/+1
This closes #2 RP on GitHub. From f13cca01b7aa489dcb6909513f2b781b36ac7fea
2017-09-08Cosmetic fixes in port.go.Sergey Fedchenko1-33/+35
This closes #5 on GitHub. From 615369a29511c6021e5623070f082fdb17ff37a2
2017-09-07Moving body data before headers for PHP POST.Max Romanov2-7/+22
PHP SAPI tries to read body for POST request before registering header-specific variables. For other methods, read_post_body() called by SAPI after variables registration. This closes #10 issue on GitHub.
2017-09-06Spreading user validation for php and go apps.Max Romanov1-8/+8
2017-09-06Fixed building by Sun C on Solaris.Igor Sysoev1-1/+2
2017-09-06Style fixes.Igor Sysoev21-124/+185
2017-09-06Controller: validating user and group names.Igor Sysoev1-4/+67
2017-09-05Fixing request id logging.Max Romanov1-1/+1
2017-09-05Fixing racing condition on app port release/request.Max Romanov1-1/+21
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-05Double connection close attempt fix.Max Romanov2-4/+13
2017-09-05Using CSTRZ mapping type for go executable.Max Romanov3-10/+6
2017-09-05Introducing working_directory directive for applications.Max Romanov4-0/+36
2017-09-01Added SERVER_ADDR parameter for Python and PHP modules.Igor Sysoev4-0/+11
2017-08-31Fixed format specifier.Igor Sysoev1-1/+1
2017-08-31Multiplexing different requests in single app port.Max Romanov1-0/+5
2017-08-31Default value 1 for number of workers.Max Romanov1-0/+2
2017-08-31PHP SAPI: typo fixed.Sergey Kandaurov1-1/+1
2017-08-31Changed modules names format.Igor Sysoev1-1/+1
2017-08-31nginext has been renamed to unit.Igor Sysoev28-27/+27
2017-08-31Introduced module compatibility vector.Igor Sysoev7-5/+50
2017-08-30Avoid nxt_port_mmap_header_t redefinition warning.Max Romanov1-3/+1
2017-08-30Avoid nxt_go_process_t redefinition warning.Max Romanov3-3/+12
2017-08-30ListenAndServe changed to be compatible with http.ListenAndServe.Max Romanov3-6/+27
2017-08-30Send remote address to go application.Max Romanov2-0/+6
2017-08-30Fixed pid_file pattern misprint introduced in 231:6832cdee961e.Max Romanov1-1/+1
2017-08-30Adding a missing slash to the tail of path set by --modulesIgor Sysoev1-3/+12
command line option.
2017-08-30The discovery process did not quit if no modules were not found.Igor Sysoev1-41/+48
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 Bartenev3-31/+53
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-30Lib unit tests have been renamed to tests.Igor Sysoev3-14/+6
2017-08-29The process type enum exposed to go module.Max Romanov4-14/+27
2017-08-29Fixed debug message broken in e8da77a2c293.Max Romanov1-4/+3
2017-08-29The master process has been renamed to the main process.Igor Sysoev15-121/+121