mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
LibC: Fail name lookups immediately if we can't connect to LookupServer
This commit is contained in:
parent
a9e3575a18
commit
f3dad64a3b
Notes:
sideshowbarker
2024-07-19 10:14:25 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/f3dad64a3b3
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,10 @@ static int connect_to_lookup_server()
|
|||
rc = connect(fd, (const sockaddr*)&address, sizeof(address));
|
||||
if (rc == 0)
|
||||
break;
|
||||
if (rc < 0) {
|
||||
perror("connect_to_lookup_server");
|
||||
break;
|
||||
}
|
||||
--retries;
|
||||
sleep(1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue