spyoungtech / grequests

Requests + Gevent = <3
https://pypi.python.org/pypi/grequests
BSD 2-Clause "Simplified" License
4.46k stars 331 forks source link

grequests + multiprocessing "resource not found" #100

Closed narfman0 closed 1 year ago

narfman0 commented 7 years ago

With the following code snippet:

import grequests
from multiprocessing import Manager
Manager().list()

I get the following traceback:

Traceback (most recent call last):
  File "minimal.py", line 3, in <module>
    Manager().list()
  File "/usr/lib64/python2.7/multiprocessing/managers.py", line 667, in temp
    token, exp = self._create(typeid, *args, **kwds)
  File "/usr/lib64/python2.7/multiprocessing/managers.py", line 565, in _create
    conn = self._Client(self._address, authkey=self._authkey)
  File "/usr/lib64/python2.7/multiprocessing/connection.py", line 179, in Client
    answer_challenge(c, authkey)
  File "/usr/lib64/python2.7/multiprocessing/connection.py", line 440, in answer_challenge
    message = connection.recv_bytes(256)         # reject large message
IOError: [Errno 11] Resource temporarily unavailable

I'd guess some conflicting patching. I dumped grequests and it works. Also lol@curious_george, awesome :). Thanks for the lib! Using it here and there :)