def set_server(self, wsgi_app, fnc_serve=None):
self.set_wsgi_app(wsgi_app)<EOL>ssl_config = self.get_config("<STR_LIT>")<EOL>ssl_context = {}<EOL>if self.get_config("<STR_LIT>") == "<STR_LIT>":<EOL><INDENT>if ssl_config.get("<STR_LIT>"):<EOL><INDENT>ssl_context["<STR_LIT>"] = ssl_config.get("<STR_LIT>")<EOL>ssl_context["<STR_LIT>"] = ssl_config.get("<STR_LIT:key>")<EOL><DEDENT>from gevent.pywsgi import WSGIServer<EOL>http_server = WSGIServer(<EOL>(self.host, self.port),<EOL>wsgi_app,<EOL>**ssl_context<EOL>)<EOL>self.log.debug("<STR_LIT>")<EOL>fnc_serve = http_server.serve_forever<EOL><DEDENT>elif self.get_config("<STR_LIT>") == "<STR_LIT>":<EOL><INDENT>self.pluginmgr_config["<STR_LIT>"] = True<EOL><DEDENT>elif self.get_config("<STR_LIT>") == "<STR_LIT>":<EOL><INDENT>self.pluginmgr_config["<STR_LIT>"] = True<EOL><DEDENT>elif self.get_config("<STR_LIT>") == "<STR_LIT>":<EOL><INDENT>fnc_serve = self.run<EOL><DEDENT>if self.get_config("<STR_LIT>") == "<STR_LIT>":<EOL><INDENT>import gevent<EOL>self.log.debug("<STR_LIT>")<EOL>self.worker = gevent.spawn(fnc_serve)<EOL><DEDENT>elif self.get_config("<STR_LIT>") == "<STR_LIT>":<EOL><INDENT>self.worker = fnc_serve<EOL><DEDENT>else:<EOL><INDENT>self.worker = fnc_serve<EOL><DEDENT>
figures out how the wsgi application is to be served
according to config