[tarantool-patches] [PATCH v2 0/2] take getaddrinfo() errors into account

Roman Khabibov roman.habibov at tarantool.org
Tue Jun 25 16:38:26 MSK 2019


Before this patch, branch when getaddrinfo() returns error codes
couldn't be reached on Mac OS, because they are greater than 0 on
Mac OS (checking for errors was rc < 0).

Roman Khabibov (2):
  lua: return getaddrinfo() errors
  say: take getaddrinfo() errors  into account

 src/box/lua/net_box.lua   |  7 +++++--
 src/lib/core/coio_task.c  |  2 +-
 src/lib/core/say.c        |  3 ++-
 src/lua/socket.c          | 17 ++++++++++++++++-
 src/lua/socket.lua        | 37 +++++++++++++++++++++++--------------
 test/app/socket.result    | 21 ++++++++++++++++++++-
 test/app/socket.test.lua  | 10 ++++++++++
 test/box-tap/cfg.test.lua | 19 ++++++++++++++++++-
 test/box/net.box.result   | 11 +++++++++++
 test/box/net.box.test.lua |  8 ++++++++
 test/unit/coio.cc         |  7 ++++++-
 test/unit/coio.result     |  4 +++-
 12 files changed, 123 insertions(+), 23 deletions(-)

-- 
Branch: https://github.com/tarantool/tarantool/tree/romanhabibov/gh-4138-getaddrinfo
Issue: https://github.com/tarantool/tarantool/issues/4138
2.20.1 (Apple Git-117)





More information about the Tarantool-patches mailing list