Message157797
| Author |
kristjan.jonsson |
| Recipients |
kristjan.jonsson, loewis, pitrou, python-dev, sbt |
| Date |
2012年04月08日.17:06:02 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1333904763.69.0.717289065055.issue14522@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
multiprocessing.reduction still appears to use DuplicateHandle to copy sockets.
I propose adding a pair of custom functions to _multiprocessing, that "pickles" and "unpickles" handles. It can detect socket handles as being different from e.g. pipe handles by using WSADuplicateSocket and return a bytes object, similar to what is already done in socketmodule (see issue 14310)
On non-windows, this would be a no-op.
_multiprocessing already linkes with winsock, whereas the subprocess is part of python core which doesn't. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年04月08日 17:06:03 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, loewis, pitrou, python-dev, sbt |
| 2012年04月08日 17:06:03 | kristjan.jonsson | set | messageid: <1333904763.69.0.717289065055.issue14522@psf.upfronthosting.co.za> |
| 2012年04月08日 17:06:02 | kristjan.jonsson | link | issue14522 messages |
| 2012年04月08日 17:06:02 | kristjan.jonsson | create |
|