net.box: fix console connection breakage when request is discarded
If a timed-out console request is collected by the garbage collector before the response is processed, the connection will stop serving new requests. This happens because of the erroneous 'return' statement in console_sm. Fix it and add a test. Closes #6249
Showing
- changelogs/unreleased/gh-6249-fix-console-connection-breakage-on-timeout.md 3 additions, 0 deletions...sed/gh-6249-fix-console-connection-breakage-on-timeout.md
- src/box/lua/net_box.c 1 addition, 0 deletionssrc/box/lua/net_box.c
- src/box/lua/net_box.lua 12 additions, 8 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_discard_console_request_gh-6250.result 62 additions, 0 deletionstest/box/net.box_discard_console_request_gh-6250.result
- test/box/net.box_discard_console_request_gh-6250.test.lua 19 additions, 0 deletionstest/box/net.box_discard_console_request_gh-6250.test.lua
- test/box/suite.ini 1 addition, 1 deletiontest/box/suite.ini
Loading
Please register or sign in to comment