Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f4a8cc7

Browse filesBrowse files
committed
socket.getnameinfo should release the GIL
1 parent 5c9ee49 commit f4a8cc7
Copy full SHA for f4a8cc7

File tree

1 file changed

+2
-0
lines changed
Filter options

1 file changed

+2
-0
lines changed

‎Modules/socketmodule.c

Copy file name to clipboardExpand all lines: Modules/socketmodule.c
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.