Skip to content

"non-idempotent" req/rep #1857

Answered by gdamore
hungrycat asked this question in Q&A
Discussion options

You must be logged in to vote

You may in fact set the NNG_OPT_REQ_RESENDTIME to infinite, but an even better solution is to set it to 0. Setting it to zero does in fact eliminate the need for the request to be idempotent, and there are some optimizations done for 0 that won't be done for infinite time. (In particular, we won't bother setting a timer, etc.). So yes, recommendation is to to set to 0 for the behavior you want.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gdamore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants