This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author badouxn
Recipients badouxn, yselivanov
Date 2017-11-15.12:53:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
When using asyncio in combination with multiprocessing, a TypeError occur when readuntil() encounter an EOF instead of the delimiter.
readuntil return a IncompleteReadError exception which is pickled by the multiprocessing package.
The unpickling failed due to an argument being None. As noted in the following links, it fails:

The error trace is: 
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib64/python3.6/", line 916, in _bootstrap_inner
  File "/usr/lib64/python3.6/", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.6/multiprocessing/", line 463, in _handle_results
    task = get()
  File "/usr/lib64/python3.6/multiprocessing/", line 252, in recv
    return _ForkingPickler.loads(r)
TypeError: __init__() missing 1 required positional argument: 'expected'

Fix proposed: 
Make the "expected" parameter of the IncompleteReadError exception class optional.
Date User Action Args
2017-11-15 12:53:23badouxnsetrecipients: + badouxn, yselivanov
2017-11-15 12:53:23badouxnsetmessageid: <>
2017-11-15 12:53:23badouxnlinkissue32034 messages
2017-11-15 12:53:23badouxncreate