Skip to content

Bug about confirm mode and r eturn mode #197

Answered by Zerpet
wushu037 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @wushu037,

I can confirm that there is no bug, the code is working as intended. I don't know what are the requirements for your practice; I guess you have to demonstrate publish confirm and return (see below).

For when you will receive a publish confirmation, I'm going to quote the documentation:

For unroutable messages, the broker will issue a confirm once the exchange verifies a message won't route to any queue [...]

For routable messages, the basic.ack is sent when a message has been accepted by all the queues. For persistent messages routed to durable queues, this means persisting to disk. [...]

In your source code, the PublishWithContext function suceeds (i.e. sends the message …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by wushu037
Comment options

You must be logged in to vote
2 replies
@Zerpet
Comment options

@wushu037
Comment options

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
Converted from issue

This discussion was converted from issue #196 on May 29, 2023 16:16.