diff options
author | Stefan Radomski <github@mintwerk.de> | 2017-06-08 09:52:27 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2017-06-08 09:52:27 (GMT) |
commit | e9b78b546baf50149d121c96df823d44a709a97c (patch) | |
tree | 22fd3f72bf2a43ee78ca5e4fd27e1c130b3e5dc0 /src/uscxml/server | |
parent | cdc9c7da381aa296dc48c2494adcf9ca941d0851 (diff) | |
download | uscxml-e9b78b546baf50149d121c96df823d44a709a97c.zip uscxml-e9b78b546baf50149d121c96df823d44a709a97c.tar.gz uscxml-e9b78b546baf50149d121c96df823d44a709a97c.tar.bz2 |
Performance improvements
Diffstat (limited to 'src/uscxml/server')
-rw-r--r-- | src/uscxml/server/HTTPServer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/uscxml/server/HTTPServer.cpp b/src/uscxml/server/HTTPServer.cpp index aa43002..29dd9a6 100644 --- a/src/uscxml/server/HTTPServer.cpp +++ b/src/uscxml/server/HTTPServer.cpp @@ -736,7 +736,9 @@ void HTTPServer::start() { void HTTPServer::run(void* instance) { HTTPServer* INSTANCE = (HTTPServer*)instance; while(INSTANCE->_isRunning) { - event_base_dispatch(INSTANCE->_base); + // getting this to be non-polling is somewhat tricky and changes among versions + event_base_loop(INSTANCE->_base, EVLOOP_ONCE | EVLOOP_NO_EXIT_ON_EMPTY); +// event_base_dispatch(INSTANCE->_base); } LOGD(USCXML_INFO) << "HTTP Server stopped" << std::endl; } |