Repository navigation
Commit 8f0dc10
fix(okhttp): keep the wrapped EventListener per Call (#6003)
* fix(okhttp): keep the wrapped EventListener per Call
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* docs: add changelog entry
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* refactor(okhttp): look up the wrapped EventListener once per callback
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* fix(okhttp): delegate canceled() outside of the call window
* fix(okhttp): bind out-of-window cancels to the listener of their call
* fix(okhttp): drop out-of-window cancels instead of creating a listener for them
* fix(okhttp): avoid computeIfAbsent to keep Android API 21 compatibility
* Fix Changelog
* docs(okhttp): document that canceled() is not always delegated
* docs(okhttp): note the deliberate canceled() deviation in the delegation tests
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent 1511066 commit 8f0dc10
5 files changed
Lines changed: 360 additions & 39 deletions
File tree
- sentry-okhttp
- src
- main/java/io/sentry/okhttp
- test/java/io/sentry/okhttp
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
0 commit comments