summaryrefslogtreecommitdiffhomepage
path: root/src/go/unit/unit.go (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-12-13Introducing Unit version check in Go package.Max Romanov1-19/+42
To communicate with the Go program, Unit setup environment variable named NXT_GO_PORTS with value contains Unit version, stream id to confirm application is started, and Unit ports information. Go Unit package parses this string and compares runtime version with compile time version. In case of parse error or version mismatch, ListenAndServe() returns with the error.
2017-12-06Go: removing request registry.Max Romanov1-36/+16
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-08-31nginext has been renamed to unit.Igor Sysoev1-0/+134