[issue14522] Avoid using DuplicateHandle() on sockets in multiprocessing.connection

sbt report at bugs.python.org
Sat Apr 7 21:02:43 CEST 2012


New submission from sbt <shibturn at gmail.com>:

In multiprocessing.connection on Windows, socket handles are indirectly duplicated using DuplicateHandle() instead the WSADuplicateSocket().  According to Microsoft's documentation this is not supported.

This is easily avoided by using socket.detach() instead of duplicating the handle.

----------
files: mp_socket_dup.patch
keywords: patch
messages: 157747
nosy: sbt
priority: normal
severity: normal
status: open
title: Avoid using DuplicateHandle() on sockets in multiprocessing.connection
Added file: http://bugs.python.org/file25153/mp_socket_dup.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14522>
_______________________________________


More information about the Python-bugs-list mailing list