[Python-Dev] sharing sockets among processes on windows (original) (raw)
Kristján Valur Jónsson kristjan at ccpgames.com
Thu Mar 15 01:32:17 CET 2012
- Previous message: [Python-Dev] sharing sockets among processes on windows
- Next message: [Python-Dev] SocketServer issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Great. I was about to write unittests for my patch, when I found out that I wanted to use multiprocessing to run them. So, I decided that the tests rather belonged in there rather than test_socket.py. This is where I stumbled upon code that multiprocessing uses to transfer sockets for unix. I need to read that code and understand it and see if it can be persuaded to magically work on windows too.
K
From: Glyph Lefkowitz [mailto:glyph at twistedmatrix.com] Sent: 14. mars 2012 17:22 To: Kristján Valur Jónsson Cc: Python-Dev (python-dev at python.org) Subject: Re: [Python-Dev] sharing sockets among processes on windows
On Mar 13, 2012, at 5:27 PM, Kristján Valur Jónsson wrote:
Hi, I´m interested in contributing a patch to duplicate sockets between processes on windows. Tha api to do this is WSADuplicateSocket/WSASocket(), as already used by dup() in the _socketmodule.c Here´s what I have:
Just in case anyone is interested, we also have a ticket for this in Twisted: <http://twistedmatrix.com/trac/ticket/4389>. It would be great to share code as much as possible.
-glyph
-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20120315/542f2141/attachment.html>
- Previous message: [Python-Dev] sharing sockets among processes on windows
- Next message: [Python-Dev] SocketServer issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]