pynsq
pynsq copied to clipboard
CLS command in pynsq
I found in TCP protocol spec message CLS but in pynsq there is no method for this message.
CLS
Cleanly close your connection (no more messages are sent)
CLS\n
Success Responses:
CLOSE_WAIT
Error Responses:
E_INVALID
yep, this should be part of the public API, thanks for reporting!
+1, but piling on for a full disconnect/close operation on a Reader. CLS nsqd connections, close nsqlookupd conns, and clean up Tornado callbacks.
I half assed this last week, but it turned out to be trickier than I thought.