You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ref(cache): cache envelopes only on failed HTTP send
Previously, cache_keep unconditionally copied envelopes to the cache
directory on restart (during process_old_runs), regardless of whether
sending succeeded or failed. Now envelopes are cached only when the
HTTP send actually fails, fixing the behavior to match the intended
"offline caching" use case.
- Add cache_path and refcount to sentry_run_t
- Extract http_send_envelope() helper to get status_code
- Cache on failed send in http_send_task when cache_keep is enabled
- Add cleanup_func on transport for async cache pruning on bgworker
- Remove unconditional caching from process_old_runs
- Update integration tests to use HTTP transport with unreachable DSN
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
# Changelog
2
2
3
+
## Unreleased
4
+
5
+
**Fixes**:
6
+
7
+
- Fix `cache_keep` to only cache envelopes when HTTP send fails, instead of unconditionally on restart. ([#1585](https://github.com/getsentry/sentry-native/pull/1585))
0 commit comments