net.box: update connection state before calling any triggers
Currently, the connection state is updated after calling triggers. However, the triggers can, in turn, cause a new state change. The state will be updated the state in the wrong order, and the original state change will overwrite the state change from the trigger. To fix this, let's update the connection state before calling any triggers. Closes #9827 NO_DOC=<bugfix> (cherry picked from commit bb38b059)
Showing
- changelogs/unreleased/gh-9827-netbox-on_connect-close.md 4 additions, 0 deletionschangelogs/unreleased/gh-9827-netbox-on_connect-close.md
- src/box/lua/net_box.lua 1 addition, 1 deletionsrc/box/lua/net_box.lua
- test/box-luatest/gh_9827_netbox_on_connect_close_test.lua 24 additions, 0 deletionstest/box-luatest/gh_9827_netbox_on_connect_close_test.lua
Loading
Please register or sign in to comment