-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error serving aiohttp #1338
Comments
If aiohttp ships with its own worker implementation perhaps we can deprecate ours. Here is the relevant part from http://aiohttp.readthedocs.io/en/stable/gunicorn.html#start-gunicorn:
|
Sounds good to me. :-) |
Oops. Sorry. I'll update the worker in a few days. |
@asvetlov Thanks! also as of now we don't have to only support wsgi. pure HTTP is ok too :) I will provide more details in the coming month. |
@benoitc also I want to move P.S. UPD. |
But deployment aiohttp applications behind gunicorn is quite popular -- people prefer to use it for forking several aiohttp workers with well-known rules. |
Sorry, it takes more than few days but I didn't give up. |
@asvetlov we've discussed packaging the workers separately and we have the gunicorn organization on GitHub already. Maybe aiohttp can be the first worker packaged and added to that organization. |
+1 from me. |
still. I would appreciate to have the issue fixed. so we can next go further eventually. Any idea of the work to do for it @asvetlov ? |
Hi,
When trying to serve an
aiohttp==0.22.5
application withgunicorn==19.6.0
using thegaiohttp
worker class (as documented) I can an error:I noticed that
Application.__call__()
accepts no parameters, butWSGIServerHttpProtocol.handle_request()
tries to call it as a WSGI app (with two arguments, environ and start_response). So I believeApplication.__call__()
could perhaps accept variable parameters and just ignore them, but I'm not sure this would impact anything else.However, when following the
aiohttp
documentation on deploying with Gunicorn, that is, usingaiohttp.worker.GunicornWebWorker
, then it works fine for me.The text was updated successfully, but these errors were encountered: