-
Notifications
You must be signed in to change notification settings - Fork 331
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
Server not able to get address raising no attribute 'cfg_addr' #199
Comments
I'm having the same issue when stress testing simple test app.
@shuoli84 |
I am having the same issue. |
Save the following snippet as from socketio.sgunicorn import GeventSocketIOWorker
class MyGeventSocketIOWorker(GeventSocketIOWorker):
policy_server = False and launch your app with
|
as noted here, using earlier gunicorn versions may work for you. pip uninstall gunicorn |
I just committed a fix, which will make it work with newer version of gunicorn. The merge is pending. |
Merge will stay pending forever as this project is missing a maintainer. BTW, I can confirm that the workaround of @ant9000 works fine. Alternatively, you can also set the environment variable |
Cool. I will stay with my forked branch then :) |
My setup:
Gunicorn + gevent_socketio + django
Started the server by:
In gunicorn_config.py:
def post_fork(server, worker):
import pymysql
pymysql.install_as_MySQLdb()
The text was updated successfully, but these errors were encountered: