def stop(self):
        if self.started:
            try:
                self.httpd.shutdown()
                self.httpd.server_close()
                self.server_thread.join()
                self.server_thread = None
                self.logger.info("Stopped http server on %s:%s" % (self.host, self.port))
            except AttributeError:
                pass
            self.started = False
        self.httpd = None
@todo: docstring
dataset/ETHPy150Open w3c/wptserve/wptserve/server.py/WebTestHttpd.stop--crossover with--dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/S3OptionYNDAnalysis.summary