Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/real-buckets-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@e2b/python-sdk': patch
'e2b': patch
---

Increase default request timeout
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ Timeout for requests to the API in **milliseconds**.
###### Default

```ts
30_000 // 30 seconds
60_000 // 60 seconds
```

***
Expand Down Expand Up @@ -408,7 +408,7 @@ Timeout for requests to the API in **milliseconds**.
###### Default

```ts
30_000 // 30 seconds
60_000 // 60 seconds
```

### timeoutMs?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ Timeout for requests to the API in **milliseconds**.
###### Default

```ts
30_000 // 30 seconds
60_000 // 60 seconds
```

### user?
Expand Down Expand Up @@ -486,7 +486,7 @@ Timeout for requests to the API in **milliseconds**.
###### Default

```ts
30_000 // 30 seconds
60_000 // 60 seconds
```

### user?
Expand Down Expand Up @@ -543,7 +543,7 @@ Timeout for requests to the API in **milliseconds**.
###### Default

```ts
30_000 // 30 seconds
60_000 // 60 seconds
```

### timeoutMs?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ Timeout for requests to the API in **milliseconds**.
###### Default

```ts
30_000 // 30 seconds
60_000 // 60 seconds
```

### secure?
Expand Down
6 changes: 3 additions & 3 deletions packages/js-sdk/src/connectionConfig.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Logger } from './logs'
import {getEnvVar, version} from './api/metadata'
import { getEnvVar, version } from './api/metadata'

const REQUEST_TIMEOUT_MS = 30_000 // 30 seconds
const REQUEST_TIMEOUT_MS = 60_000 // 60 seconds
export const KEEPALIVE_PING_INTERVAL_SEC = 50 // 50 seconds

export const KEEPALIVE_PING_HEADER = 'Keepalive-Ping-Interval'
Expand Down Expand Up @@ -37,7 +37,7 @@ export interface ConnectionOpts {
/**
* Timeout for requests to the API in **milliseconds**.
*
* @default 30_000 // 30 seconds
* @default 60_000 // 60 seconds
*/
requestTimeoutMs?: number
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/python-sdk/e2b/connection_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from e2b.api.metadata import package_version

REQUEST_TIMEOUT: float = 30.0 # 30 seconds
REQUEST_TIMEOUT: float = 60.0 # 60 seconds

KEEPALIVE_PING_INTERVAL_SEC = 50 # 50 seconds
KEEPALIVE_PING_HEADER = "Keepalive-Ping-Interval"
Expand Down