summaryrefslogtreecommitdiffhomepage
path: root/go/nxt_cgo_lib.c (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2021-11-09Introduced SCM_CREDENTIALS / SCM_CREDS in the socket control msgs.Tiago Natel de Moura1-4/+4
2021-11-08Go: fixing racing condition on app start.Max Romanov1-0/+1
Request procesing loop should be started in ready handler to avoid race between go-routine start and context ready flag assignment. The issue introduced in 43553aa72111.
2020-11-18Go: removing C proxy functions and re-using goroutines.Max Romanov1-137/+14
2020-08-11Introducing the shared application port.Max Romanov1-2/+9
This is the port shared between all application processes which use it to pass requests for processing. Using it significantly simplifies the request processing code in the router. The drawback is 2 more file descriptors per each configured application and more complex libunit message wait/read code.
2020-08-11Adding a reference counter to the libunit port structure.Max Romanov1-6/+6
The goal is to minimize the number of (pid, id) to port hash lookups which require a library mutex lock. The response port is found once per request, while the read port is initialized at startup.
2020-08-11Libunit refactoring: port management.Max Romanov1-6/+7
- Changed the port management callbacks to notifications, which e. g. avoids the need to call the libunit function - Added context and library instance reference counts for a safer resource release - Added the router main port initialization
2019-12-24Go: introducing SHM_ACK observer.Max Romanov1-9/+11
Each request processed in a separate goroutine. In case of OOSM state, during response write, request goroutine blocks on channel which waits event from main thread about SHM_ACK message from router.
2019-12-24Go: moving source files to the root of the project.Max Romanov1-0/+0
This patch includes packaging changes related to files move.
2019-09-18Go: removing nxt_main.h usage.Max Romanov1-3/+2
One small step to Go modules support.
2019-03-21Adjusting request schema value according to connection tls state.Max Romanov1-0/+4
This closes #223 issue on GitHub.
2019-02-27Fixed processing of SERVER_NAME after 77aad2c142a0.Valentin Bartenev1-5/+2
Previously, the nxt_router_prepare_msg() function expected server host among other headers unmodified. It's not true anymore since normalization of the Host header has been introduced in 77aad2c142a0. The nxt_unit_split_host() function was removed. It didn't work correctly with IPv6 literals. Anyway, after 77aad2c142a0 the port splitting is done in router while Host header processing.
2018-10-02Go: fixing typo in log messages.Max Romanov1-1/+1
2018-08-06Unit application library.Max Romanov1-0/+207
Library now used in all language modules. Old 'nxt_app_*' code removed. See src/test/nxt_unit_app_test.c for usage sample.