▲ | o11c 3 days 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!" | ||
▲ | throwawayoogux 3 days ago | parent | next [-] | |
OpenBSD has getaddrinfo_async since 5.6 (March 2014). | ||
▲ | sedatk 3 days ago | parent | prev | next [-] | |
Just wanted to note that Windows doesn't have that problem either. Even Windows NT had async getaddrinfo() variants. | ||
▲ | surajrmal 2 days ago | parent | prev | next [-] | |
The 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. | ||
▲ | BobbyTables2 3 days ago | parent | prev [-] | |
Wow, TIL ! Thanks! |