Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3bf8684

Browse files
committed
Merge 3.4 (asyncio)
2 parents c27a8af + 498b1f6 commit 3bf8684

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Modules/overlapped.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,10 +1146,13 @@ ConnectPipe(OverlappedObject *self, PyObject *args)
11461146
if (Address == NULL)
11471147
return NULL;
11481148

1149+
Py_BEGIN_ALLOW_THREADS
11491150
PipeHandle = CreateFileW(Address,
11501151
GENERIC_READ | GENERIC_WRITE,
11511152
0, NULL, OPEN_EXISTING,
11521153
FILE_FLAG_OVERLAPPED, NULL);
1154+
Py_END_ALLOW_THREADS
1155+
11531156
PyMem_Free(Address);
11541157
if (PipeHandle == INVALID_HANDLE_VALUE)
11551158
return SetFromWindowsErr(0);

0 commit comments

Comments
 (0)