Comment 10 for bug 1584160

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/24718
Committed: http://github.org/Juniper/contrail-sandesh/commit/d5b954786dd7fbb92e629032f3ce8f1872f43387
Submitter: Zuul
Branch: R3.1

commit d5b954786dd7fbb92e629032f3ce8f1872f43387
Author: Sundaresan Rajangam <email address hidden>
Date: Thu Oct 6 00:45:15 2016 -0700

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
(cherry picked from commit 8a0b129e482cfba1801ca92b4f36dd736c2bfe41)