Skip to content
Snippets Groups Projects
  • Roman Tsisyk's avatar
    180f8bf7
    Refactor URI usage and remove hard-coded IP addreses from tests · 180f8bf7
    Roman Tsisyk authored
    Tarantool started to use getaddrinfo() to find suitable address for
    binding both for IPROTO and CONSOLE ports. A hostname can be resolved to
    various addresses families, depending on user settings. For example, all
    moderns systems resolve 'localhost' to '::1' by default. This creates a
    problem if one subsystem binds to '127.0.0.1' and some other tries to
    connect '::1'. This patch unify hardcoded names and addresses in entire test
    suite to use the same value. This is pre-requisite for #447, #368 and other
    URI-related patches.
    
    Other changes:
    
      * console.listen() now properly handles address arguments
      * console.listen() re-based on socket.tcp_server() code
    180f8bf7
    History
    Refactor URI usage and remove hard-coded IP addreses from tests
    Roman Tsisyk authored
    Tarantool started to use getaddrinfo() to find suitable address for
    binding both for IPROTO and CONSOLE ports. A hostname can be resolved to
    various addresses families, depending on user settings. For example, all
    moderns systems resolve 'localhost' to '::1' by default. This creates a
    problem if one subsystem binds to '127.0.0.1' and some other tries to
    connect '::1'. This patch unify hardcoded names and addresses in entire test
    suite to use the same value. This is pre-requisite for #447, #368 and other
    URI-related patches.
    
    Other changes:
    
      * console.listen() now properly handles address arguments
      * console.listen() re-based on socket.tcp_server() code