iproto: fix kharon use after free
The session can be closed while kharon is travelling between tx and iproto. If this happens, kharon shouldn't go back to iproto when it returns to tx, even if there are pending pushes, because the connection is going to be freed soon. Thanks to @Gerold103 for the simple fix. Closes #6520
Showing
- changelogs/unreleased/gh-6520-fix-box-session-push-crash.md 4 additions, 0 deletionschangelogs/unreleased/gh-6520-fix-box-session-push-crash.md
- src/box/iproto.cc 7 additions, 0 deletionssrc/box/iproto.cc
- test/box/gh-6520-race-between-push-and-close.result 39 additions, 0 deletionstest/box/gh-6520-race-between-push-and-close.result
- test/box/gh-6520-race-between-push-and-close.test.lua 20 additions, 0 deletionstest/box/gh-6520-race-between-push-and-close.test.lua
Loading
Please register or sign in to comment