summaryrefslogtreecommitdiffstats
path: root/Lib/multiprocessing/connection.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.10] gh-97514: Don't use Linux abstract sockets for multiprocessing ↵Miss Islington (bot)2022-10-201-5/+0
| | | | | | | | | | | | | | | | | | | | | | (GH-98501) (GH-98503) Linux abstract sockets are insecure as they lack any form of filesystem permissions so their use allows anyone on the system to inject code into the process. This removes the default preference for abstract sockets in multiprocessing introduced in Python 3.9+ via https://github.com/python/cpython/pull/18866 while fixing https://github.com/python/cpython/issues/84031. Explicit use of an abstract socket by a user now generates a RuntimeWarning. If we choose to keep this warning, it should be backported to the 3.7 and 3.8 branches. (cherry picked from commit 49f61068f49747164988ffc5a442d2a63874fc17) Co-authored-by: Gregory P. Smith <greg@krypto.org> Automerge-Triggered-By: GH:gpshead
* bpo-39850: Add support for abstract sockets in multiprocessing (GH-18866)Pablo Galindo2020-03-091-2/+8
|
* bpo-17560: Too small type for struct.pack/unpack in ↵Alexander Buchkovsky2018-11-061-10/+20
| | | | | mutliprocessing.Connection (GH-10305) Allow sending more than 2 GB at once on a multiprocessing connection on non-Windows systems.
* bpo-34054: multiprocessing uses time.monotonic() (GH-8118)Victor Stinner2018-07-061-4/+4
| | | | | The multiprocessing module now uses the monotonic clock time.monotonic() instead of the system clock time.time() to implement timeouts.
* bpo-5001: More-informative multiprocessing error messages (#3079)Allen W. Smith, Ph.D2017-08-291-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make error message more informative Replace assertions in error-reporting code with more-informative version that doesn't cause confusion over where and what the error is. * Additional clarification + get travis to check * Change from SystemError to TypeError As suggested in PR comment by @pitrou, changing from SystemError; TypeError appears appropriate. * NEWS file installation; ACKS addition (will do my best to justify it by additional work) * Making current AssertionErrors in multiprocessing more informative * Blurb added re multiprocessing managers.py, queues.py cleanup * Further multiprocessing cleanup - went through pool.py * Fix two asserts in multiprocessing/util.py * Most asserts in multiprocessing more informative * Didn't save right version * Further work on multiprocessing error messages * Correct typo * Correct typo v2 * Blasted colon... serves me right for trying to work on two things at once * Simplify NEWS entry * Update 2017-08-18-17-16-38.bpo-5001.gwnthq.rst * Update 2017-08-18-17-16-38.bpo-5001.gwnthq.rst OK, never mind. * Corrected (thanks to pitrou) error messages for notify * Remove extraneous backslash in docstring.
* bpo-29776: Use decorator syntax for properties. (#585)Serhiy Storchaka2017-03-191-2/+7
|
* Issue #28053: Applying refactorings, docs and other cleanup to follow.Davin Potts2016-09-091-4/+4
|
* Issue #25899: Converted non-ASCII characters in docstrings and manpageSerhiy Storchaka2015-12-181-1/+1
| | | | to ASCII replacements. Original patch by Chris Angelico.
* Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-5/+10
|\ | | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
| * Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-5/+10
| | | | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
* | Issue #18382: Zero-length messages are consumed by ReadFile on Windows 8 and ↵Steve Dower2015-03-021-2/+11
|\ \ | |/ | | | | later
| * Issue #18382: Zero-length messages are consumed by ReadFile on Windows 8 and ↵Steve Dower2015-03-021-2/+11
| | | | | | | | later
* | Issue #23285: PEP 475 -- Retry system calls failing with EINTR.Charles-François Natali2015-02-071-15/+3
| |
* | Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka2014-12-051-1/+1
|\ \ | |/
| * Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka2014-12-051-1/+1
| |
* | Simplify code in multiprocessing.Connection.send_bytes().Antoine Pitrou2014-07-311-9/+6
|/ | | | Followup to issue #20540; patch by Serhiy.
* do not generate pipe names in the temporary dirBenjamin Peterson2014-04-141-1/+1
|
* Issue #20976: pyflakes: Remove unused importsVictor Stinner2014-03-201-1/+0
|
* Issue #20978: pyflakes: fix undefined namesVictor Stinner2014-03-201-1/+1
|
* Issue #20540: Fix a performance regression (vs. Python 3.2) when layering a ↵Antoine Pitrou2014-02-081-6/+16
|\ | | | | | | | | | | multiprocessing Connection over a TCP socket. For small payloads, Nagle's algorithm would introduce idle delays before the entire transmission of a message.
| * Issue #20540: Fix a performance regression (vs. Python 3.2) when layering a ↵Antoine Pitrou2014-02-081-6/+16
| | | | | | | | | | | | multiprocessing Connection over a TCP socket. For small payloads, Nagle's algorithm would introduce idle delays before the entire transmission of a message.
* | Issue #17276: MD5 as default digestmod for HMAC is deprecated. The HMACChristian Heimes2013-11-201-2/+2
| | | | | | | | module supports digestmod names, e.g. hmac.HMAC('sha1').
* | Issue #18934: Use poll/select-based selectors for multiprocessing.Connection,Charles-François Natali2013-09-081-1/+9
| | | | | | | | to avoid one extra FD per Connection.
* | Issue #18934: multiprocessing: use selectors module.Charles-François Natali2013-09-051-35/+16
| |
* | Issue #18571: Implementation of the PEP 446: file descriptors and file handlesVictor Stinner2013-08-271-2/+4
| | | | | | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
* | Issue #8713: Support alternative start methods in multiprocessing on Unix.Richard Oudkerk2013-08-141-20/+41
| | | | | | | | See http://hg.python.org/sandbox/sbt#spawn
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-1/+1
| |
* | Issue #17097: Merge.Richard Oudkerk2013-07-011-3/+15
|\ \ | |/
| * Issue #17097: Make multiprocessing ignore EINTR.Richard Oudkerk2013-07-011-3/+15
| |
| * Fix issue #17707: multiprocessing.Queue's get() method does not block for ↵Giampaolo Rodola'2013-04-171-1/+1
| | | | | | | | short timeouts.
| * fix for previous commit related to issue 10527 which didn't have the ↵Giampaolo Rodola'2013-01-141-23/+25
| | | | | | | | intended effect as per http://bugs.python.org/issue10527#msg179895
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-1/+1
| | | | | | | | ModuleNotFoundError.
* | Fix issue #17707: multiprocessing.Queue's get() method does not block for ↵Giampaolo Rodola'2013-04-171-1/+1
| | | | | | | | short timeouts.
* | Issue #17025: Add dumps() and loads() to ForkingPickler.Charles-François Natali2013-03-241-5/+2
| |
* | fix for previous commit related to issue 10527 which didn't have the ↵Giampaolo Rodola'2013-01-141-23/+25
| | | | | | | | intended effect as per http://bugs.python.org/issue10527#msg179895
* | Issue #16955: Fix the poll() method for multiprocessing's socketRichard Oudkerk2013-01-131-1/+1
|\ \ | |/ | | | | connections on Windows.
| * Issue #16955: Fix the poll() method for multiprocessing's socketRichard Oudkerk2013-01-131-1/+1
| | | | | | | | connections on Windows.
* | Fix issue 10527: make multiprocessing use poll() instead of select() if ↵Giampaolo Rodola'2012-12-311-0/+21
|\ \ | |/ | | | | available.
| * Fix issue 10527: make multiprocessing use poll() instead of select() if ↵Giampaolo Rodola'2012-12-311-0/+21
| |\ | | | | | | | | | available.
| | * Fix issue 10527: make multiprocessing use poll() instead of select() if ↵Giampaolo Rodola'2012-12-311-0/+21
| | | | | | | | | | | | available.
| | * Issue #6056: Make multiprocessing use setblocking(True) on the sockets it uses.Richard Oudkerk2012-07-271-0/+5
| | | | | | | | | | | | Original patch by J Derek Wilson.
| | * Fix for issue 14725 for 3.2 branchRichard Oudkerk2012-05-051-1/+4
| | |
* | | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-7/+7
| | |
* | | Issue #16719: Get rid of WindowsError. Use OSError insteadAndrew Svetlov2012-12-191-1/+1
|/ / | | | | | | Patch by Serhiy Storchaka.
* | Issue #6056: Make multiprocessing use setblocking(True) on the sockets it uses.Richard Oudkerk2012-07-271-0/+5
| | | | | | | | Original patch by J Derek Wilson.
* | Issue #15064: Implement context manager protocol for multiprocessing typesRichard Oudkerk2012-06-181-1/+17
| |
* | Issue #14753: Make multiprocessing treat negative timeouts as it did in 3.2Richard Oudkerk2012-05-101-6/+1
| | | | | | | | | | | | | | | | In Python 3.2 and earlier, Process.join() and Connection.poll() treated negative timeouts as zero timeouts. Earlier versions from the 3.3 line of development treat them as infinite timeouts. The patch reverts to the old behaviour.
* | Fix for Issue 14725 for 3.3 branch.Richard Oudkerk2012-05-051-9/+17
| |
* | Mark multiprocessing files with "Licensed to PSF under a Contributor Agreement"Richard Oudkerk2012-04-301-26/+1
| | | | | | | | instead of BSD licence.
* | Issue #4892: multiprocessing Connections can now be transferred over ↵Antoine Pitrou2012-04-241-2/+22
| | | | | | | | | | | | multiprocessing Connections. Patch by Richard Oudkerk (sbt).