[issue28906] Can't inherit sockets with multiprocessing on Windows

2016-12-08 Thread Eryk Sun
Changes by Eryk Sun : -- stage: -> resolved ___ Python tracker ___ ___

[issue28906] Can't inherit sockets with multiprocessing on Windows

2016-12-08 Thread Preston Landers
Preston Landers added the comment: Wow, good call. That does work for me. Wish I had thought to try it. I assume you want me to go ahead and close the issue. Sorry for the noise, but this really helps! -- resolution: -> not a bug status: open -> closed

[issue28906] Can't inherit sockets with multiprocessing on Windows

2016-12-08 Thread Eryk Sun
Changes by Eryk Sun : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue28906] Can't inherit sockets with multiprocessing on Windows

2016-12-08 Thread Eryk Sun
Eryk Sun added the comment: You should be able to directly pass the socket to the child process. multiprocessing registers a reduction for this. On Windows it uses the DupSocket class from multiprocessing.resource_sharer: class DupSocket(object): '''Picklable wrapper for a

[issue28906] Can't inherit sockets with multiprocessing on Windows

2016-12-08 Thread Preston Landers
New submission from Preston Landers: I'm porting a Python 2.6 based application to Python 3.6. This app uses a customized version of the "flup" package to do FastCGI services on Windows using the multiprocessing package. This requires a few sockets to be inherited across processes - the main