new webserver executor to allow multiple instances
This commit is contained in:
parent
05b338ec85
commit
ac3fce2913
@ -28,7 +28,7 @@ class Webserver {
|
|||||||
server.createContext("/senddata/admindata", AdminRequests())
|
server.createContext("/senddata/admindata", AdminRequests())
|
||||||
server.createContext("/senddata/newdate", NewDateRequest())
|
server.createContext("/senddata/newdate", NewDateRequest())
|
||||||
server.createContext("/senddata/Devicedata", DeviceRequest())
|
server.createContext("/senddata/Devicedata", DeviceRequest())
|
||||||
server.executor = null // creates a default executor
|
server.executor = java.util.concurrent.Executors.newCachedThreadPool() // creates a default executor
|
||||||
server.start()
|
server.start()
|
||||||
info("Server available at http://127.0.0.1:8000 now")
|
info("Server available at http://127.0.0.1:8000 now")
|
||||||
} catch (e: BindException) {
|
} catch (e: BindException) {
|
||||||
|
Loading…
Reference in New Issue
Block a user