54edca09d9
When creating Inet sockets we may get multiple struct addrinfo records. With this patch we support up to 16 records per Internet peer. When closing we iterate over all peers and all records. Refactor socket_close() to clean up any lingering socket path when closing UNIX socket. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>