flup.server.singleserver

class flup.server.singleserver.SingleServer(jobClass=None, jobArgs=(), **kw)
run(sock, timeout=1.0)

The main loop. Pass a socket that is ready to accept() client connections. Return value will be True or False indiciating whether or not the loop was exited due to SIGHUP.