diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-12-13 18:12:13 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-12-13 18:12:13 +0300 |
commit | 799cff5f3e226d8a82a767714c59815939a989dd (patch) | |
tree | a844660aba1423de68726f55a83cdbe6a7d49d82 /auto | |
parent | b680e944d65d56e92919287247bd47e13ad030e9 (diff) | |
download | unit-799cff5f3e226d8a82a767714c59815939a989dd.tar.gz unit-799cff5f3e226d8a82a767714c59815939a989dd.tar.bz2 |
Introducing Unit version check in Go package.
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.
Diffstat (limited to 'auto')
0 files changed, 0 insertions, 0 deletions