2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Correct two protocol violations of TLV

One was the client going away without contemplating the done flag.
Another was the server sending two requestdone messages.
This commit is contained in:
Jarrod Johnson 2014-02-22 20:38:33 -05:00
parent 11138aa3de
commit 3d3f820a7d
2 changed files with 1 additions and 3 deletions

View File

@ -257,7 +257,6 @@ def setvalues(attribs):
if 'errorcode' in res:
exitcode = res['errorcode']
sys.stderr.write('Error: ' + res['error'] + '\n')
return

View File

@ -123,8 +123,7 @@ def process_request(connection, request, cfm, authdata):
tlvdata.send_tlvdata(connection, {"_requestdone": 1})
except exc.InvalidArgumentException:
tlvdata.send_tlvdata(connection, {"errorcode": 400,
"error": "Bad Request",
"_requestdone": 1})
"error": "Bad Request"})
tlvdata.send_tlvdata(connection, {"_requestdone": 1})
send_response(hdlr, connection)
return