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

Reduce AsyncHttpTransport timeout when closing to prevent ANRs #2864

Closed
romtsn opened this issue Jul 24, 2023 · 1 comment
Closed

Reduce AsyncHttpTransport timeout when closing to prevent ANRs #2864

romtsn opened this issue Jul 24, 2023 · 1 comment
Assignees
Labels
Platform: Android Type: Bug Something isn't working
Milestone

Comments

@romtsn
Copy link
Member

romtsn commented Jul 24, 2023

Description

https://github.com/getsentry/sentry-java/blob/2718fc84e3251bcfb233f6a7ff2775e690820563/sentry/src/main/java/io/sentry/transport/AsyncHttpTransport.java#L143C53-L143C53

This is causing ANRs on Android when Sentry.close() is called, we should reduce it to 4s max to prevent ANRs. At least when this is called on the main thread.

@romtsn
Copy link
Member Author

romtsn commented Aug 4, 2023

Closed by #2879

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Android Type: Bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

3 participants