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

Avoid endless loops when RPC binding #693

Closed
wants to merge 9 commits into from
Closed

Conversation

israpps
Copy link
Contributor

@israpps israpps commented Dec 9, 2024

This pull request aims to avoid RPC binding to incompatible/non loaded IRX modules to result on an endless loop. By aborting the process after 100 failed binding attempts

Example:
A program built with libpadx tries to bind RPC while rom0:PADMAN is loaded would result on an endless loop.

With this change, it will no longer hang

@israpps israpps closed this Dec 9, 2024
@israpps israpps reopened this Dec 9, 2024
@fjtrujy
Copy link
Member

fjtrujy commented Dec 12, 2024

Please let's add some description to the PRs to understand better what's the PR about

@israpps
Copy link
Contributor Author

israpps commented Dec 12, 2024

Please let's add some description to the PRs to understand better what's the PR about

@fjtrujy done

@israpps
Copy link
Contributor Author

israpps commented Dec 12, 2024

Seems like my branch was based on my master branch. That's why that change I there. It wasn't intentional.

Will fix

applications will no longer hang eternally on a loop.

Applications that bind to RPC should check return values of rpc binding functions and throw errors if necesary to avoid the program to continue execution as if server is ok
@israpps
Copy link
Contributor Author

israpps commented Dec 12, 2024

I see lots of mess with merge upstream

Could you squash and merge instead of normal merge @fjtrujy ?

@israpps israpps closed this Dec 12, 2024
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.

2 participants