Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use gevent.WSGIServer for http introspect
Presently, pysandesh uses WSGIServer defined in wsgiref.simple_server for http introspect, whose poll_interval is 0.5 seconds by default. The poll_interval is used to check for server shutdown. Therefore, if the poll_interval is set to None, it requires external trigger such as connection to the socket to wakeup the select loop. Polling reduces the responsiveness and wastes cpu cycle. Use gevent.WSGIServer for http introspect to avoid the polling issue. Change-Id: Ic8cf8ec815c422be0d65e77247c67e7002bc91ad Closes-Bug: #1584160
- Loading branch information
Sundaresan Rajangam
committed
Oct 6, 2016
1 parent
43eedec
commit 8a0b129
Showing
2 changed files
with
20 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters