def run_server(self, port):
try:<EOL><INDENT>self.server = MultiThreadedHTTPServer(('<STR_LIT>', port), Handler)<EOL><DEDENT>except socket.error as e:  <EOL><INDENT>logger.error(str(e))<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>logger.info("<STR_LIT>"<EOL>% port)<EOL>try:<EOL><INDENT>self.server.serve_forever()<EOL><DEDENT>except KeyboardInterrupt:<EOL><INDENT>logger.info("<STR_LIT>")<EOL>self.shutdown_server()<EOL><DEDENT>
run a server binding to port