projects
/
osm
/
vim-emu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure timely termination of all flask servers
[osm/vim-emu.git]
/
src
/
emuvim
/
api
/
rest
/
rest_api_endpoint.py
diff --git
a/src/emuvim/api/rest/rest_api_endpoint.py
b/src/emuvim/api/rest/rest_api_endpoint.py
index
4f9d6d8
..
a9a863d
100755
(executable)
--- a/
src/emuvim/api/rest/rest_api_endpoint.py
+++ b/
src/emuvim/api/rest/rest_api_endpoint.py
@@
-28,6
+28,7
@@
import logging
import threading
from flask import Flask
from flask_restful import Api
import threading
from flask import Flask
from flask_restful import Api
+from gevent import monkey
from gevent.pywsgi import WSGIServer
# need to import total module to set its global variable dcs
from gevent.pywsgi import WSGIServer
# need to import total module to set its global variable dcs
@@
-44,6
+45,8
@@
from monitor import MonitorInterfaceAction, MonitorFlowAction, MonitorLinkAction
import pkg_resources
from os import path
import pkg_resources
from os import path
+monkey.patch_all()
+
logging.basicConfig()
logging.basicConfig()