Skip to content

Commit

Permalink
Don't pass spawn=None when creating WSGIServer.
Browse files Browse the repository at this point in the history
New versions of gevent seem unhappy about this (raise exception with message
"Impossible to call blocking function in the event loop callback" when
handling an incoming HTTP request). I don't quite understand what that
parameter is supposed to do and I think I don't it.
  • Loading branch information
markdoliner committed Sep 8, 2014
1 parent 451fbd6 commit 786c6fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_xmpp_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,4 +412,4 @@ def application(env, start_response):

if __name__ == '__main__':
logging.basicConfig(filename='log')
gevent.wsgi.WSGIServer(('', 1000), application=application, spawn=None).serve_forever()
gevent.wsgi.WSGIServer(('', 1000), application=application).serve_forever()

0 comments on commit 786c6fb

Please sign in to comment.