New submission from dktc <[email protected]>: 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 error: (32414) accepted ('127.0.0.1', 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__ self.finish() File "/opt/pypy-2.0-beta2/site-packages/eventlet/wsgi.py", line 509, in finish BaseHTTPServer.BaseHTTPRequestHandler.finish(self) File "/root/pypy/pypy-pypy-4b60269153b5/lib-python/2.7/SocketServer.py", line 694, in finish self.wfile.close() File "/root/pypy/pypy-pypy-4b60269153b5/lib-python/2.7/socket.py", line 327, in close self._sock._decref_socketios() 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 <[email protected]> <https://bugs.pypy.org/issue1468> ________________________________________ _______________________________________________ pypy-issue mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-issue
