summaryrefslogtreecommitdiffhomepage
path: root/go/port.go (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2021-11-09Introduced SCM_CREDENTIALS / SCM_CREDS in the socket control msgs.Tiago Natel de Moura1-2/+5
2021-11-08Go: fixing racing condition on app start.Max Romanov1-5/+8
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.
2021-10-28Moving request limit control to libunit.Max Romanov1-1/+2
Introducting application graceful stop. For now only used when application process reach request limit value. This closes #585 issue on GitHub.
2020-11-18Go: removing C proxy functions and re-using goroutines.Max Romanov1-17/+31
2020-08-11Introducing the shared application port.Max Romanov1-1/+7
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-04-10Resolving a racing condition while adding ports on the app's side.Max Romanov1-1/+5
An earlier attempt (ad6265786871) to resolve this condition on the router's side added a new issue: the app could get a request before acquiring a port.
2020-03-30Fixing application process infinite loop.Max Romanov1-0/+4
Main process exiting before app process init may have caused hanging.
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.
2018-10-02Go: fixing typo in log messages.Max Romanov1-1/+1
2018-08-06Unit application library.Max Romanov1-98/+45
Library now used in all language modules. Old 'nxt_app_*' code removed. See src/test/nxt_unit_app_test.c for usage sample.
2017-12-06Go: removing request registry.Max Romanov1-18/+14
Passing unsafe.Pointers (void *) from Go to C is complicated by an attempt to make such pointers less unsafe. A straightforward optimization is to replace 'unsafe.Pointer' with 'uintptr' (thanks to Xin Huang for the idea: https://stackoverflow.com/a/44826533 ). As a result, request registry with mutex is gone.
2017-10-27Fixing racing condition in request.msgs usage.Max Romanov1-8/+8
2017-09-08Cosmetic fixes in port.go.Sergey Fedchenko1-33/+35
This closes #5 on GitHub. From 615369a29511c6021e5623070f082fdb17ff37a2
2017-09-06Style fixes.Igor Sysoev1-5/+11
2017-08-31nginext has been renamed to unit.Igor Sysoev1-1/+1
2017-08-30ListenAndServe changed to be compatible with http.ListenAndServe.Max Romanov1-2/+18
2017-08-29The process type enum exposed to go module.Max Romanov1-2/+3
2017-08-29The master process has been renamed to the main process.Igor Sysoev1-4/+4
2017-07-12Go: worker initialization. READY message to master.Max Romanov1-6/+47
2017-06-23External Go app request processing.Max Romanov1-0/+161