Skip to content

Commit f4a8cc7

Browse files
committed
socket.getnameinfo should release the GIL
1 parent 5c9ee49 commit f4a8cc7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/socketmodule.c

+2
Original file line numberDiff line numberDiff line change
@@ -6883,8 +6883,10 @@ socket_getnameinfo(PyObject *self, PyObject *args)
68836883
}
68846884
#endif
68856885
}
6886+
Py_BEGIN_ALLOW_THREADS
68866887
error = getnameinfo(res->ai_addr, (socklen_t) res->ai_addrlen,
68876888
hbuf, sizeof(hbuf), pbuf, sizeof(pbuf), flags);
6889+
Py_END_ALLOW_THREADS
68886890
if (error) {
68896891
socket_state *state = get_module_state(self);
68906892
set_gaierror(state, error);

0 commit comments

Comments
 (0)