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:
parent
11138aa3de
commit
3d3f820a7d
@ -257,7 +257,6 @@ def setvalues(attribs):
|
||||
if 'errorcode' in res:
|
||||
exitcode = res['errorcode']
|
||||
sys.stderr.write('Error: ' + res['error'] + '\n')
|
||||
return
|
||||
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user