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

Fix: remediate a crash in santametricservice #729

Merged
merged 3 commits into from
Feb 14, 2022

Conversation

pmarkowsky
Copy link
Contributor

This PR fixes a crash in santametricservice by making sure to cancel the NSURLSessionDataTask when a timeout has been detected.

The issue was manifesting as a segfault where the stack variable that was captured inside the block was no longer valid.

Additionally this adds a configuration option MetricExportTimeout that's used to make this simpler to test and also user tunable.

mlw and others added 2 commits February 14, 2022 11:56
This allows an export timeout to be set via configuration and eases testing.
@pmarkowsky pmarkowsky added the bug label Feb 14, 2022
@pmarkowsky pmarkowsky added this to the 2022.2 Release milestone Feb 14, 2022
@pmarkowsky pmarkowsky self-assigned this Feb 14, 2022
@pmarkowsky pmarkowsky merged commit faa8946 into google:main Feb 14, 2022
@pmarkowsky pmarkowsky deleted the markowsky/fix-santa-metric-service branch March 10, 2022 15:48
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.

2 participants