net.box: reference the connection object from asynchronous requests
In order to prevent the garbage collection of the discarded connection, asynchronous requests must reference the connection object. We must reference the connection object rather than the transport object, because our garbage collection hook is attached to the former. Closes #9629 NO_DOC=<bugfix> (cherry picked from commit fb5bf51c)
Showing
- changelogs/unreleased/gh-9629-netbox-async-request-connection-gc.md 4 additions, 0 deletions.../unreleased/gh-9629-netbox-async-request-connection-gc.md
- src/box/lua/net_box.c 13 additions, 1 deletionsrc/box/lua/net_box.c
- src/box/lua/net_box.lua 1 addition, 1 deletionsrc/box/lua/net_box.lua
- test/box-luatest/gh_9629_netbox_async_request_connection_gc_test.lua 26 additions, 0 deletions...atest/gh_9629_netbox_async_request_connection_gc_test.lua
Loading
Please register or sign in to comment