def iter_http_requests(server, player):
while not player or player.running:<EOL><INDENT>try:<EOL><INDENT>yield server.open(timeout=<NUM_LIT>)<EOL><DEDENT>except OSError:<EOL><INDENT>continue<EOL><DEDENT><DEDENT>
Repeatedly accept HTTP connections on a server.

    Forever if the serving externally, or while a player is running if it is not
    empty.