Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
htparser: Shut down root handler socket instead of closing it.
[ashd.git]
/
python
/
ashd
/
proto.py
diff --git
a/python/ashd/proto.py
b/python/ashd/proto.py
index
c1ae1b0
..
8dc5ecd
100644
(file)
--- a/
python/ashd/proto.py
+++ b/
python/ashd/proto.py
@@
-10,6
+10,8
@@
ashd.util module provides an easier-to-use interface.
import os, socket
import htlib
import os, socket
import htlib
+__all__ = ["req", "recvreq", "sendreq"]
+
class protoerr(Exception):
pass
class protoerr(Exception):
pass
@@
-117,8
+119,8
@@
def recvreq(sock = 0):
done, to avoid leaking response sockets. If end-of-file is
received on the socket, None is returned.
done, to avoid leaking response sockets. If end-of-file is
received on the socket, None is returned.
- This function may either raise
o
n OSError if an error occurs on
- the socket, or a ashd.proto.protoerr if the incoming request is
+ This function may either raise
a
n OSError if an error occurs on
+ the socket, or a
n
ashd.proto.protoerr if the incoming request is
invalidly encoded.
"""
data, fd = htlib.recvfd(sock)
invalidly encoded.
"""
data, fd = htlib.recvfd(sock)