iproto: fix multiple socket closures and not deleting unix socket path
All iproto threads listening same socket, and if user change listen address, this socket is closed in each iproto thread. This patch fix this error, now socket is closed only in main thread, and in other threads we are only stop listening, without socket closing. Also this patch fix error, related to the fact, that tarantool did not delete the unix socket path, when it's finishing work.
Showing
- changelogs/unreleased/fix-undeleted-unix-socket-path-and-multiple-socket-closing.md 6 additions, 0 deletions...undeleted-unix-socket-path-and-multiple-socket-closing.md
- src/box/iproto.cc 39 additions, 38 deletionssrc/box/iproto.cc
- src/lib/core/evio.c 21 additions, 8 deletionssrc/lib/core/evio.c
- src/lib/core/evio.h 4 additions, 0 deletionssrc/lib/core/evio.h
- test/box/box-cfg-unix-socket-del.lua 8 additions, 0 deletionstest/box/box-cfg-unix-socket-del.lua
- test/box/box-cfg-unix-socket-del.result 91 additions, 0 deletionstest/box/box-cfg-unix-socket-del.result
- test/box/box-cfg-unix-socket-del.test.lua 34 additions, 0 deletionstest/box/box-cfg-unix-socket-del.test.lua
- test/box/net.box_reconnect_after_gh-3164.result 4 additions, 9 deletionstest/box/net.box_reconnect_after_gh-3164.result
- test/box/net.box_reconnect_after_gh-3164.test.lua 4 additions, 9 deletionstest/box/net.box_reconnect_after_gh-3164.test.lua
Loading
Please register or sign in to comment