Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed closing arbitrator server #293

Conversation

Hadatko
Copy link
Member

@Hadatko Hadatko commented Jul 1, 2022

In current situation client could hang as it's server could be closed before receiving answer. Server is used for receiving all answers.

Signed-off-by: Cervenka Dusan cervenka@acrios.com

Pull request

Choose Correct

  • bug
  • feature

Describe the pull request

Hi Michal, i noticed that test_arbitrator hangs often. Based on my today debugging i think i found rootcause and solution.
coren0 last erpc function informed second side that tests are over and we can close servers. Then other core sometimes send erpc call to stop core0 server before core0 received answer from last request.

I add new erpc function which is oneway (so no wait for answer) which will start the process with closing servers.

To Reproduce

Rerun tests several times

Expected behavior

No hang

Screenshots

Desktop (please complete the following information):

  • OS: ubuntu 22.04
  • eRPC Version: develop latest

Steps you didn't forgot to do

  • I checked if other PR isn't solving this issue.
  • I read Contribution details and did appropriate actions.
  • PR code is tested.
  • [X PR code is formatted.

Additional context

In current situation client could hang as it's server could be closed before receiving answer. Server is used for receiving all answers.

Signed-off-by: Cervenka Dusan <cervenka@acrios.com>
@Hadatko Hadatko added this to the 1.10.0 milestone Jul 1, 2022
@Hadatko Hadatko requested a review from MichalPrincNXP July 1, 2022 17:04
@Hadatko Hadatko self-assigned this Jul 1, 2022
@Hadatko Hadatko linked an issue Jul 1, 2022 that may be closed by this pull request
2 tasks
Copy link
Member

@MichalPrincNXP MichalPrincNXP left a comment

Choose a reason for hiding this comment

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

yes, looks good

@MichalPrincNXP MichalPrincNXP merged commit 594e212 into EmbeddedRPC:develop Jul 8, 2022
@MichalPrincNXP
Copy link
Member

Thank you, Dusan!

@Hadatko Hadatko deleted the bugfix/test_arbitrator_server_close branch July 8, 2022 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] test_arbitrator.GetResultFromSecondSide sometimes freeze.
2 participants