Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants