net.box: implement connection closing without dropping requests
At the moment, when a net.box connection is closing we are cancel worker fiber. In this case, data that was not sent is lost. In this patch connection closing without dropping requests was implemented: before canceling fiber we wait on conditional variable until all data will be sent. Closes #6338
Showing
- changelogs/unreleased/gh-6338-close-without-losing-requests.md 6 additions, 0 deletions...elogs/unreleased/gh-6338-close-without-losing-requests.md
- src/box/lua/net_box.c 49 additions, 22 deletionssrc/box/lua/net_box.c
- src/box/lua/net_box.lua 39 additions, 11 deletionssrc/box/lua/net_box.lua
- src/lib/core/errinj.h 1 addition, 0 deletionssrc/lib/core/errinj.h
- test/box/errinj.result 1 addition, 0 deletionstest/box/errinj.result
- test/box/net.box_closing_without_lost_gh-6338.result 121 additions, 0 deletionstest/box/net.box_closing_without_lost_gh-6338.result
- test/box/net.box_closing_without_lost_gh-6338.test.lua 56 additions, 0 deletionstest/box/net.box_closing_without_lost_gh-6338.test.lua
- test/box/suite.ini 1 addition, 1 deletiontest/box/suite.ini
Loading
Please register or sign in to comment