uNetworking / uSockets

Miniscule cross-platform eventing, networking & crypto for async applications
Apache License 2.0
1.29k stars 268 forks source link

bsd_create_connect_socket uses synchronous getaddrinfo #89

Closed andreysm closed 4 years ago

andreysm commented 4 years ago

Maybe it is better to use uv_getaddrinfo (in libuv case) to make it more asynchronous? If other event libraries doesn't have similar option, they can fallback to getaddrinfo_a (GNU glibc specific) or to synchronous getaddrinfo. At least, it can be made asynchronous for libuv.

ghost commented 4 years ago

Yep this should be fixed but I dns lookup is not part of the eventing layer, so cannot use libuv (it is only used for eventing)