X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=python3%2Fashd%2Fproto.py;h=aa6b686e846e4afe8e58f928dcb3ed8b8c1d039d;hp=e695751c954e21b4d4d7a6d105dea103bf001f59;hb=ae53bd62c2f29027661811b9b7b4aa7c38e159a3;hpb=1f3d7aa314fa55a238be0940a1cd244e4671fc7d diff --git a/python3/ashd/proto.py b/python3/ashd/proto.py index e695751..aa6b686 100644 --- a/python3/ashd/proto.py +++ b/python3/ashd/proto.py @@ -138,8 +138,8 @@ def recvreq(sock = 0): 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 + This function may either raise an OSError if an error occurs on + the socket, or an ashd.proto.protoerr if the incoming request is invalidly encoded. """ data, fd = htlib.recvfd(sock) @@ -179,4 +179,4 @@ def sendreq(sock, req): data += key + b'\0' data += val + b'\0' data += b'\0' - htlib.sendfd(sock, req.sk.fileno(), data) + htlib.sendfd(sock, req.bsk.fileno(), data)