Exception isn't thrown until we call serve_forever, so that must be in the try block
This commit is contained in:
parent
b8b88183c3
commit
1ce6893fa8
|
@ -3048,6 +3048,9 @@ def start_gevent():
|
||||||
global gevent_server
|
global gevent_server
|
||||||
try:
|
try:
|
||||||
gevent_server = WSGIServer(('', ub.config.config_port), app)
|
gevent_server = WSGIServer(('', ub.config.config_port), app)
|
||||||
|
gevent_server.serve_forever()
|
||||||
except socket.error:
|
except socket.error:
|
||||||
|
app.logger.info('Unable to listen on \'\', trying on IPv4 only...')
|
||||||
gevent_server = WSGIServer(('0.0.0.0', ub.config.config_port), app)
|
gevent_server = WSGIServer(('0.0.0.0', ub.config.config_port), app)
|
||||||
gevent_server.serve_forever()
|
gevent_server.serve_forever()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user