5 ms·
On Linux you can do what you're asking with `getaddrinfo_a` + `gai_suspend`. As always, on non-Linux Unixen the answer is "screw you!"
by o11c 1y ago
On Linux you can do what you're asking with `getaddrinfo_a` + `gai_suspend`.
As always, on non-Linux Unixen the answer is "screw you!"
- surajrmal 1y agoThe fact that a library as polific as libcurl doesn't use it and tried to resort to pthread_cancel, known to have serious problems, points to a larger problem. Either posix needs to incorporate an async getaddrinfo or there is an education problem that needs to be addressed.
- sedatk 1y agoJust wanted to note that Windows doesn't have that problem either. Even Windows NT had async getaddrinfo() variants.
- BobbyTables2 1y agoWow, TIL ! Thanks!
- throwawayoogux 1y agoOpenBSD has getaddrinfo_async since 5.6 (March 2014).