Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2baf419
)
python: Clarified recvreq documentation.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 2 Mar 2011 09:56:08 +0000
(10:56 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 2 Mar 2011 09:56:08 +0000
(10:56 +0100)
python/ashd/proto.py
patch
|
blob
|
blame
|
history
diff --git
a/python/ashd/proto.py
b/python/ashd/proto.py
index
92a21ca
..
c1ae1b0
100644
(file)
--- a/
python/ashd/proto.py
+++ b/
python/ashd/proto.py
@@
-114,7
+114,8
@@
def recvreq(sock = 0):
The returned value is an instance of the `req' class. As per its
description, care should be taken to close() the request when
- done, to avoid leaking response sockets.
+ done, to avoid leaking response sockets. If end-of-file is
+ received on the socket, None is returned.
This function may either raise on OSError if an error occurs on
the socket, or a ashd.proto.protoerr if the incoming request is