Skip to content

Commit a859567

Browse files
authored
chore(http-client): Increase http timeouts from 5s to 30s (#4276)
* Increase http timeouts from 5s to 30s * Changelog
1 parent d07899f commit a859567

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Features
6+
7+
- 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))
8+
59
### Fixes
610

711
- Do not override user-defined `SentryOptions` ([#4262](https://github.com/getsentry/sentry-java/pull/4262))

sentry/src/main/java/io/sentry/SentryOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,10 @@ public class SentryOptions {
291291
private @NotNull ISentryExecutorService executorService = NoOpSentryExecutorService.getInstance();
292292

293293
/** connection timeout in milliseconds. */
294-
private int connectionTimeoutMillis = 5000;
294+
private int connectionTimeoutMillis = 30_000;
295295

296296
/** read timeout in milliseconds */
297-
private int readTimeoutMillis = 5000;
297+
private int readTimeoutMillis = 30_000;
298298

299299
/** Reads and caches envelope files in the disk */
300300
private @NotNull IEnvelopeCache envelopeDiskCache = NoOpEnvelopeCache.getInstance();

0 commit comments

Comments
 (0)