Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #17748
| Date | 2011-12-22 14:27 -0600 |
|---|---|
| From | Andrew Berg <bahamutzero8825@gmail.com> |
| Subject | IPC with multiprocessing.connection |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3993.1324585661.27778.python-list@python.org> (permalink) |
I'm trying to set up a system where my main program launches external programs and then establishes connections to them via named pipes or Unix domain sockets (depending on platform) with multiprocessing.connection.Listener. The issue I'm having is with the accept() method. If there is nothing on the other side of the pipe/socket, it just hangs. Connection objects have a poll() method that can timeout, but I see no way to continue the program if there's no initial connection. What I'd like to do is let it time out if there's nothing on the other side. I'm pretty new to the multiprocessing module (and IPC in general), so I could've easily missed something. -- CPython 3.2.2 | Windows NT 6.1.7601.17640
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
IPC with multiprocessing.connection Andrew Berg <bahamutzero8825@gmail.com> - 2011-12-22 14:27 -0600
Re: IPC with multiprocessing.connection bobicanprogram <icanbob@gmail.com> - 2011-12-23 03:50 -0800
Re: IPC with multiprocessing.connection Andrew Berg <bahamutzero8825@gmail.com> - 2011-12-23 06:27 -0600
csiph-web