X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=python%2Fashd%2Fproto.py;h=90ba0124248452f6a7c6ee84f8522e41b70abb0f;hb=2f9428608e54bb015722c76e64cf9faf1df8b19e;hp=12c44bdaf79ea978693b2e1865f3c6af11ae22f4;hpb=4d7cf6cba43bf1dc072b571d1b62cf214d9a7a10;p=ashd.git diff --git a/python/ashd/proto.py b/python/ashd/proto.py index 12c44bd..90ba012 100644 --- a/python/ashd/proto.py +++ b/python/ashd/proto.py @@ -82,13 +82,3 @@ def sendreq(sock, req): data += val + '\0' data += '\0' htlib.sendfd(sock, req.sk.fileno(), data) - -def serveloop(handler, sock = 0): - while True: - req = recvreq(sock) - if req is None: - break - try: - handler(req) - finally: - req.close()