aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorIan Simonson <ian.simonson@protonmail.com>2020-06-07 21:04:15 +1000
committerIan Simonson <ian.simonson@protonmail.com>2020-06-07 22:39:35 +1000
commita6d1ef64d753f8be59d68695f927e03777bb6514 (patch)
tree2e88fe63dc386fab3afe04773c9d520a57ac6196 /lib/std/debug.zig
parent983f93c84061c667b9286074428d0a0aecaddb15 (diff)
downloadzig-a6d1ef64d753f8be59d68695f927e03777bb6514.tar.gz
zig-a6d1ef64d753f8be59d68695f927e03777bb6514.zip
tcpConnectToHost try all addresses in AddressList
The AddressList returned can contain more than one item e.g. the ipv4 and ipv6 addresses for a given hostname. Previously if a server had multiple addresses but was not listening on one of them Zig would give up immediately. Now on std.os.ConnectError.ConnectionRefused Zig will try the next address in the list. Zig still gives up on all other errors as they are related to the system and system resources rather than whether the remote server is listening on a particular address.
Diffstat (limited to 'lib/std/debug.zig')
0 files changed, 0 insertions, 0 deletions