* socket.getnameinfo should release the GIL
* 📜🤖 Added by blurb_it.
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
--- /dev/null
+:func:`socket.getnameinfo` now releases the GIL while contacting the DNS server
}
#endif
}
+ Py_BEGIN_ALLOW_THREADS
error = getnameinfo(res->ai_addr, (socklen_t) res->ai_addrlen,
hbuf, sizeof(hbuf), pbuf, sizeof(pbuf), flags);
+ Py_END_ALLOW_THREADS
if (error) {
socket_state *state = get_module_state(self);
set_gaierror(state, error);