Skip to content

Commit 0c3d465

Browse files
committed
Increase default request timeout
1 parent 9d2b3c9 commit 0c3d465

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

apps/web/src/app/(docs)/docs/sdk-reference/js-sdk/v1.13.0/commands/page.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ Timeout for requests to the API in **milliseconds**.
313313
###### Default
314314

315315
```ts
316-
30_000 // 30 seconds
316+
60_000 // 60 seconds
317317
```
318318

319319
***
@@ -408,7 +408,7 @@ Timeout for requests to the API in **milliseconds**.
408408
###### Default
409409

410410
```ts
411-
30_000 // 30 seconds
411+
60_000 // 60 seconds
412412
```
413413

414414
### timeoutMs?

apps/web/src/app/(docs)/docs/sdk-reference/js-sdk/v1.13.0/filesystem/page.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ Timeout for requests to the API in **milliseconds**.
450450
###### Default
451451

452452
```ts
453-
30_000 // 30 seconds
453+
60_000 // 60 seconds
454454
```
455455

456456
### user?
@@ -486,7 +486,7 @@ Timeout for requests to the API in **milliseconds**.
486486
###### Default
487487

488488
```ts
489-
30_000 // 30 seconds
489+
60_000 // 60 seconds
490490
```
491491

492492
### user?
@@ -543,7 +543,7 @@ Timeout for requests to the API in **milliseconds**.
543543
###### Default
544544

545545
```ts
546-
30_000 // 30 seconds
546+
60_000 // 60 seconds
547547
```
548548

549549
### timeoutMs?

apps/web/src/app/(docs)/docs/sdk-reference/js-sdk/v1.13.0/sandbox/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ Timeout for requests to the API in **milliseconds**.
586586
###### Default
587587

588588
```ts
589-
30_000 // 30 seconds
589+
60_000 // 60 seconds
590590
```
591591

592592
### secure?

packages/js-sdk/src/connectionConfig.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Logger } from './logs'
2-
import {getEnvVar, version} from './api/metadata'
2+
import { getEnvVar, version } from './api/metadata'
33

4-
const REQUEST_TIMEOUT_MS = 30_000 // 30 seconds
4+
const REQUEST_TIMEOUT_MS = 60_000 // 60 seconds
55
export const KEEPALIVE_PING_INTERVAL_SEC = 50 // 50 seconds
66

77
export const KEEPALIVE_PING_HEADER = 'Keepalive-Ping-Interval'
@@ -37,7 +37,7 @@ export interface ConnectionOpts {
3737
/**
3838
* Timeout for requests to the API in **milliseconds**.
3939
*
40-
* @default 30_000 // 30 seconds
40+
* @default 60_000 // 60 seconds
4141
*/
4242
requestTimeoutMs?: number
4343
/**

packages/python-sdk/e2b/connection_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from e2b.api.metadata import package_version
77

8-
REQUEST_TIMEOUT: float = 30.0 # 30 seconds
8+
REQUEST_TIMEOUT: float = 60.0 # 60 seconds
99

1010
KEEPALIVE_PING_INTERVAL_SEC = 50 # 50 seconds
1111
KEEPALIVE_PING_HEADER = "Keepalive-Ping-Interval"

0 commit comments

Comments
 (0)