Skip to content

Commit d3d8c5f

Browse files
Zainullin DamirZainullin Damir
authored andcommitted
++
1 parent 750c68f commit d3d8c5f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

include/ipfixprobe/outputPlugin/outputStorage/mq2OutputStorage.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class MQ2OutputStorage : public MQOutputStorage<ElementType> {
3737
const Reference<OutputContainer<ElementType>>& container,
3838
const uint8_t writerIndex) noexcept override
3939
{
40-
BackoffScheme backoff(3, std::numeric_limits<std::size_t>::max());
40+
BackoffScheme backoff(30, std::numeric_limits<std::size_t>::max());
4141
while (!this->m_queues[writerIndex].tryWrite(
4242
container,
4343
*this->m_allocationBuffer,
@@ -50,7 +50,7 @@ class MQ2OutputStorage : public MQOutputStorage<ElementType> {
5050

5151
OutputContainer<ElementType>* read(const uint8_t readerIndex) noexcept override
5252
{
53-
BackoffScheme backoff(3, std::numeric_limits<std::size_t>::max());
53+
BackoffScheme backoff(30, std::numeric_limits<std::size_t>::max());
5454
while (true) {
5555
const uint8_t sequenceIndex = this->m_readersData[readerIndex]->sequenceIndex++;
5656
const uint8_t queueIndex

include/ipfixprobe/outputPlugin/outputStorage/mqOutputStorage.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class MQOutputStorage : public OutputStorage<ElementType> {
102102
OutputContainer<ElementType>* read(const uint8_t readerIndex) noexcept override
103103
{
104104
const size_t tries = this->m_expectedWritersCount / this->m_expectedReadersCount + 1;
105-
BackoffScheme backoff(3, 5);
105+
BackoffScheme backoff(30, 3);
106106
for (const auto _ : std::views::iota(0U, tries)) {
107107
const uint8_t sequenceIndex = m_readersData[readerIndex]->sequenceIndex++;
108108
const uint8_t queueIndex
@@ -160,7 +160,7 @@ class MQOutputStorage : public OutputStorage<ElementType> {
160160
State* currentState = &m_stateBuffer.getCurrentValue();
161161

162162
if (currentState->written == m_buffersSize) {
163-
BackoffScheme backoff(7, longBackoffTries);
163+
BackoffScheme backoff(30, longBackoffTries);
164164
while (!allReadersFinished()) {
165165
if (!backoff.backoff()) {
166166
// origin.deallocate(container, writerId);

0 commit comments

Comments
 (0)