Commit c60826da by Corey Koval

Switch from Paste to gevent

parent 5cea4447
...@@ -35,6 +35,7 @@ from czml3 import Packet, Document, Preamble ...@@ -35,6 +35,7 @@ from czml3 import Packet, Document, Preamble
from czml3.properties import Position, Polyline, PolylineOutlineMaterial, Color, Material from czml3.properties import Position, Polyline, PolylineOutlineMaterial, Color, Material
from multiprocessing import Process, Queue from multiprocessing import Process, Queue
from bottle import route, run, request, get, post, put, response, redirect, template, static_file from bottle import route, run, request, get, post, put, response, redirect, template, static_file
from bottle.ext.websocket import GeventWebSocketServer, websocket
DBSCAN_Q = Queue() DBSCAN_Q = Queue()
DBSCAN_WAIT_Q = Queue() DBSCAN_WAIT_Q = Queue()
...@@ -842,7 +843,7 @@ def handle_interest_areas(action): ...@@ -842,7 +843,7 @@ def handle_interest_areas(action):
############################################### ###############################################
def start_server(ipaddr = "127.0.0.1", port=8080): def start_server(ipaddr = "127.0.0.1", port=8080):
try: try:
run(host=ipaddr, port=port, quiet=True, server="paste", debug=True) run(host=ipaddr, port=port, quiet=True, server=GeventWebSocketServer, debug=True)
except OSError: except OSError:
print(f"Port {port} seems to be in use. Please select another port or " + print(f"Port {port} seems to be in use. Please select another port or " +
"check if another instance of DFA is already running.") "check if another instance of DFA is already running.")
......
...@@ -4,4 +4,3 @@ numpy>=1.13.3 ...@@ -4,4 +4,3 @@ numpy>=1.13.3
lxml>=4.2.1 lxml>=4.2.1
czml3>=0.5.4 czml3>=0.5.4
scikit_learn>=0.23.2 scikit_learn>=0.23.2
Paste>=3.2.0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment