Skip to content

max_buffer_bytesize for async_producer #922

Answered by dasch
alan-sapaad asked this question in Q&A
Discussion options

You must be logged in to vote

You need to configure the queue in addition to the buffer – but there should already be an upper bound on the queue size. The async producer runs in a different thread than the calling code, so you cannot rely on knowing the current buffer size, since the producer will be trying to flush that buffer concurrently with your calling code.

Replies: 1 comment 14 replies

Comment options

You must be logged in to vote
14 replies
@dasch
Comment options

@alan-sapaad
Comment options

@dasch
Comment options

@dasch
Comment options

@alan-sapaad
Comment options

Answer selected by dasch
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 #913 on October 08, 2021 12:49.