Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dirplex: Added directory-locality to matches.
[ashd.git]
/
python
/
ashd
/
proto.py
diff --git
a/python/ashd/proto.py
b/python/ashd/proto.py
index
12c44bd
..
90ba012
100644
(file)
--- 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)
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()