iproto: fix error with unstoppable batching
IProto connection stops to read input on reached request limit. But when multiple requests are in a batch, the IProto does not check the limit, so it can be violated. Lets check the limit during batch parsing after each message too, not only once before parsing.
Showing
- src/box/iproto.cc 142 additions, 57 deletionssrc/box/iproto.cc
- test/box/errinj.result 86 additions, 0 deletionstest/box/errinj.result
- test/box/errinj.test.lua 39 additions, 0 deletionstest/box/errinj.test.lua
- test/box/net_msg_max.result 18 additions, 3 deletionstest/box/net_msg_max.result
- test/box/net_msg_max.test.lua 12 additions, 1 deletiontest/box/net_msg_max.test.lua
Loading
Please register or sign in to comment