summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2019-09-18 18:31:14 +0300
committerMax Romanov <max.romanov@nginx.com>2019-09-18 18:31:14 +0300
commit84e4a6437f69b14b1cafbe7915447fdcf1d87f68 (patch)
tree1b70aa21389cc79dca1aa1d51526a99e910b1ecf /src/nxt_router.c
parent4ea9ed309e958ad087ddcfd358688e2a2f105e39 (diff)
downloadunit-84e4a6437f69b14b1cafbe7915447fdcf1d87f68.tar.gz
unit-84e4a6437f69b14b1cafbe7915447fdcf1d87f68.tar.bz2
Go: do not store pointer to Go object.
To pass Go object references to C and back we use hack with casting to unsafe and then to uintptr. However, we should not store such references because Go not guaratnee it will be available by the same address. Introducing map with integer key helps to avoid dereference stored address. This closes #253 and #309 issues on GitHub.
Diffstat (limited to 'src/nxt_router.c')
0 files changed, 0 insertions, 0 deletions