Skip to content

ipfix: fix stuck flushing loop after TCP disconnect in LZ4 mode#326

Merged
SiskaPavel merged 1 commit intomasterfrom
ipfix-reconnect-lz4-fix
May 4, 2026
Merged

ipfix: fix stuck flushing loop after TCP disconnect in LZ4 mode#326
SiskaPavel merged 1 commit intomasterfrom
ipfix-reconnect-lz4-fix

Conversation

@SiskaPavel
Copy link
Copy Markdown
Collaborator

In LZ4 compress mode, a failed send_packet() call in send_templates() left readSize non-zero, causing the next getWriteBuffer() in send_data() to return null and exit without clearing template buffers.

Fix by adding CompressBuffer::getWriteBufferOrReset() which resets via shrinkTo(0) and retries once on null.

In LZ4 compress mode, a failed send_packet() call in send_templates()
left readSize non-zero, causing the next getWriteBuffer() in send_data()
to return null and exit without clearing template buffers.

Fix by adding CompressBuffer::getWriteBufferOrReset() which resets via
shrinkTo(0) and retries once on null.
@SiskaPavel SiskaPavel merged commit dedd82f into master May 4, 2026
8 checks passed
@SiskaPavel SiskaPavel deleted the ipfix-reconnect-lz4-fix branch May 4, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant