how tcpstream knows it complete right?

38 views
Skip to first unread message

aoha...@gmail.com

unread,
Jan 18, 2022, 1:17:25 AM1/18/22
to nsq-users
i implements a client and checked the go-nsq client.

i found a very comfusing thing that tcpstream's reply cant combined with its request

for example, if i finish a msg, can send fin msg_id.

but the nsqd only replies "ok",  and client only parse the replies, but not knowing that the ok is the corresponding msg_id's "ok", and the go-nsq client does the same too. it just thinks that if send fin msg_id, then  it succeed.

how do you think of this?  may be i miss something? 

thanks for replying
Reply all
Reply to author
Forward
0 new messages