Skip to content

Fix race and leaks introduced in tests by a16f8aaf2ff101567a526916b46…#14588

Merged
normanmaurer merged 1 commit into4.1from
pcap_fix
Dec 16, 2024
Merged

Fix race and leaks introduced in tests by a16f8aaf2ff101567a526916b46…#14588
normanmaurer merged 1 commit into4.1from
pcap_fix

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

…d7752aaf44c67

Motivation:

a16f8aa added some more tests for the PcapWriteHandler. Unfortunally these tests had a race and multiple buffer leaks that got undetected while reviewing.

Modifications:

  • Fix race by actually waiting for the data to be received before assert it
  • Fix leaks and correctly retain / duplicate data

Result:

No more test failures

Motivation:

a16f8aa added some more tests for the PcapWriteHandler. Unfortunally these tests had a race and multiple buffer leaks that got undetected while reviewing.

Modifications:

- Fix race by actually waiting for the data to be received before assert it
- Fix leaks and correctly retain / duplicate data

Result:

No more test failures
@normanmaurer normanmaurer added this to the 4.1.116.Final milestone Dec 16, 2024
@normanmaurer normanmaurer merged commit 22cb4ec into 4.1 Dec 16, 2024
@normanmaurer normanmaurer deleted the pcap_fix branch December 16, 2024 12:04
normanmaurer added a commit that referenced this pull request Dec 16, 2024
…d7752aaf44c67

Motivation:

a16f8aa added some more tests for the
PcapWriteHandler. Unfortunally these tests had a race and multiple
buffer leaks that got undetected while reviewing.

Modifications:

- Fix race by actually waiting for the data to be received before assert
it
- Fix leaks and correctly retain / duplicate data

Result:

No more test failures
normanmaurer added a commit that referenced this pull request Dec 16, 2024
…… (#14588)

…d7752aaf44c67

Motivation:

a16f8aa added some more tests for the
PcapWriteHandler. Unfortunally these tests had a race and multiple
buffer leaks that got undetected while reviewing.

Modifications:

- Fix race by actually waiting for the data to be received before assert
it
- Fix leaks and correctly retain / duplicate data

Result:

No more test failures
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