Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Fix flaky agentprotocol test#538

Merged
tsipinakis merged 1 commit into
mainfrom
fix_flaky_agentprotocol
Oct 8, 2023
Merged

Fix flaky agentprotocol test#538
tsipinakis merged 1 commit into
mainfrom
fix_flaky_agentprotocol

Conversation

@tsipinakis
Copy link
Copy Markdown
Member

Changes introduced with this PR

Both testing threads called the Kill() function at the same time which caused them to deadlock as they both were trying to send the termination packet to each-other at the same time. In a real situation this would not cause a deadlock as the communication between the two sides would be buffered.


By contributing to this repository, I agree to the contribution guidelines.

Both testing threads called the Kill() function at the same time which
caused them to deadlock as they both were trying to send the termination
packet to each-other at the same time. In a real situation this would
not cause a deadlock as the communication between the two sides would be
buffered.

Signed-off-by: Nikos Tsipinakis <nikos@tsipinakis.com>
Copy link
Copy Markdown
Contributor

@bencurio bencurio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice catch.

@tsipinakis tsipinakis merged commit aab0906 into main Oct 8, 2023
@tsipinakis tsipinakis deleted the fix_flaky_agentprotocol branch October 8, 2023 12:36
@bencurio bencurio mentioned this pull request Oct 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants