From d0dc5446dee918c5c2776f5e605f1a4e9fadc53e Mon Sep 17 00:00:00 2001 From: Roman Zavarnitsyn Date: Fri, 21 Mar 2025 11:27:35 +0100 Subject: [PATCH 1/2] Increase http timeouts from 5s to 30s --- sentry/src/main/java/io/sentry/SentryOptions.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sentry/src/main/java/io/sentry/SentryOptions.java b/sentry/src/main/java/io/sentry/SentryOptions.java index 14b09811eb8..a0039b4a28c 100644 --- a/sentry/src/main/java/io/sentry/SentryOptions.java +++ b/sentry/src/main/java/io/sentry/SentryOptions.java @@ -291,10 +291,10 @@ public class SentryOptions { private @NotNull ISentryExecutorService executorService = NoOpSentryExecutorService.getInstance(); /** connection timeout in milliseconds. */ - private int connectionTimeoutMillis = 5000; + private int connectionTimeoutMillis = 30_000; /** read timeout in milliseconds */ - private int readTimeoutMillis = 5000; + private int readTimeoutMillis = 30_000; /** Reads and caches envelope files in the disk */ private @NotNull IEnvelopeCache envelopeDiskCache = NoOpEnvelopeCache.getInstance(); From 5415e863089f59d552bbf54da1240532e909c183 Mon Sep 17 00:00:00 2001 From: Roman Zavarnitsyn Date: Fri, 21 Mar 2025 11:29:21 +0100 Subject: [PATCH 2/2] Changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50e3b62c388..41f19e4a1c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Features + +- Increase http timeouts from 5s to 30s to have a better chance of events being delivered without retry ([#4276](https://github.com/getsentry/sentry-java/pull/4276)) + ### Fixes - Do not override user-defined `SentryOptions` ([#4262](https://github.com/getsentry/sentry-java/pull/4262))