[pypy-issue] [issue1468] PyPy eventlet trouble with _decref_socketios

dktc tracker at bugs.pypy.org
Thu Apr 25 12:25:36 CEST 2013

New submission from dktc <dkruglyak+pypy at gmail.com>:

I just compiled a new PyPy 2.0b2 and fired off an API web service hosted in a Spawning container (https://github.com/rtyler/Spawning/), which in turn relies on eventlet.

Some API clients (but not others) are generating a weird HTTP 400 error. I googled the error messages and found a blog post (http://unchainyourbrain.com/running-
openstack-nova-with-pypy) talking about incompatibilities of PyPy and greenlet and suggesting a couple of patches. Applying these patches did not solve or change the 

(32414) accepted ('', 50726)
myserverdomain.net - - [25/Apr/2013 05:03:06] code 400, message Bad HTTP/0.9 request type ('/myuri')
myserverdomain.net - - [25/Apr/2013 05:03:06] " /myuri HTTP/1.1" 400 -
Traceback (most recent call last):
  File "/opt/pypy-2.0-beta2/site-packages/eventlet/greenpool.py", line 80, in _spawn_n_impl
    func(*args, **kwargs)
  File "/opt/pypy-2.0-beta2/site-packages/eventlet/wsgi.py", line 575, in process_request
    proto = self.protocol(socket, address, self)
  File "/root/pypy/pypy-pypy-4b60269153b5/lib-python/2.7/SocketServer.py", line 640, in __init__
  File "/opt/pypy-2.0-beta2/site-packages/eventlet/wsgi.py", line 509, in finish
  File "/root/pypy/pypy-pypy-4b60269153b5/lib-python/2.7/SocketServer.py", line 694, in finish
  File "/root/pypy/pypy-pypy-4b60269153b5/lib-python/2.7/socket.py", line 327, in close
  File "/opt/pypy-2.0-beta2/site-packages/eventlet/greenio.py", line 157, in __getattr__
    attr = getattr(self.fd, name)
AttributeError: '_socket.socket' object has no attribute '_decref_socketios'

I am really at a loss where to go from here. Is it possible to patch eventlet to work with PyPy and avoid this error?

messages: 5637
nosy: pypy-issue
priority: critical
release: 2.0
status: unread
title: PyPy eventlet trouble with _decref_socketios

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list