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

rest_client: Fix segfault and lock release #3467

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

ar45
Copy link
Contributor

@ar45 ar45 commented Sep 11, 2024

Summary

  • Fix segfault
  • Fix lock never released in some cases when using rest_get with async

Should be back ported to supported versions at least 3.5.

Closing issues
closes #3464

when setting `connected_ts` set the address which is being used as value?
@ar45 ar45 changed the title Rest client fixes master rest_client: Fix segfault and lock release Sep 11, 2024
@ar45 ar45 mentioned this pull request Sep 11, 2024
@liviuchircu liviuchircu self-assigned this Sep 11, 2024
@liviuchircu liviuchircu added this to the 3.4.9 milestone Sep 11, 2024
@liviuchircu
Copy link
Member

These are some good finds, @ar45! I recall doing some stress-testing on this no_concurrent_connects feature, but maybe I was only going through the "happy case", to not reproduce the deadlock?

In any case, both your "lock release" and NULL pointer de-references commits are fixes which I will take care of backporting right away, down to 3.4. Cheers!

@liviuchircu liviuchircu merged commit 19dadf1 into OpenSIPS:master Sep 11, 2024
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CRASH ] We got a segfault here
2 participants