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

Lines changed: 2 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy