def management_loop(self, address, family):
try:<EOL><INDENT>sock = eventlet.listen(address, family)<EOL><DEDENT>except socket.error as e:<EOL><INDENT>logging.critical("<STR_LIT>" % (address, family, e))<EOL>return<EOL><DEDENT>eventlet.sleep(<NUM_LIT:0.5>)<EOL>logging.info("<STR_LIT>" % (address, ))<EOL>management_app = ManagementApp(self)<EOL>try:<EOL><INDENT>with open("<STR_LIT>", "<STR_LIT:w>") as log_dest:<EOL><INDENT>wsgi.server(<EOL>sock,<EOL>management_app.handle,<EOL>log = log_dest,<EOL>)<EOL><DEDENT><DEDENT>finally:<EOL><INDENT>sock.close()<EOL><DEDENT>
Accepts management requests.