iproto: implement ability to open several listening sockets
Previously, iproto could only open one socket for listening only. This patch change this behaviour, now user can open several listening sockets. Also in addition to ability to pass uri as a number or string, as previously, ability to pass uri as a table of numbers or strings has been added. Closes #3554 @TarantoolBot document Title: multiple iproto listen sockets Implement ability to open several listening sockets. Implement ability to pass several listening uri as a table of numbers or strings. ```lua box.cfg { listen = {3301, 3302, 3303} } box.cfg { listen = {"127.0.0.1:3301", "127.0.0.1:3302"} } ```
Showing
- changelogs/unreleased/gh-3554-several-listening-sockets.md 6 additions, 0 deletionschangelogs/unreleased/gh-3554-several-listening-sockets.md
- src/box/box.cc 22 additions, 4 deletionssrc/box/box.cc
- src/box/iproto.cc 2 additions, 3 deletionssrc/box/iproto.cc
- src/box/iproto.h 1 addition, 1 deletionsrc/box/iproto.h
- src/box/lua/load_cfg.lua 16 additions, 4 deletionssrc/box/lua/load_cfg.lua
- test/box-tap/several-listening-sockets.test.lua 94 additions, 0 deletionstest/box-tap/several-listening-sockets.test.lua
- test/box/cfg.result 0 additions, 4 deletionstest/box/cfg.result
- test/box/cfg.test.lua 0 additions, 1 deletiontest/box/cfg.test.lua
Loading
Please register or sign in to comment