Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit 82ecbea

Browse files
committed
fix: use correct default size (768 bytes) (#23)
1 parent 2ae3679 commit 82ecbea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Streaming configuration:
9898
request to the APM Server. An overshoot of up to the size of the
9999
internal zlib buffer should be expected as the buffer is flushed after
100100
this limit is reached. The default zlib buffer size is 16 kb (default:
101-
`1048576` bytes / 1 MB)
101+
`768000` bytes)
102102
- `time` - The maxiumum number of milliseconds a streaming HTTP request
103103
to the APM Server can be ongoing before it's ended (default: `10000`
104104
ms)

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ function normalizeOptions (opts) {
379379
const normalized = Object.assign({}, opts, {objectMode: true})
380380

381381
// default values
382-
if (!normalized.size && normalized.size !== 0) normalized.size = 1024 * 1024
382+
if (!normalized.size && normalized.size !== 0) normalized.size = 750 * 1024
383383
if (!normalized.time && normalized.time !== 0) normalized.time = 10000
384384
if (!normalized.serverTimeout && normalized.serverTimeout !== 0) normalized.serverTimeout = 15000
385385
if (!normalized.serverUrl) normalized.serverUrl = 'http://localhost:8200'

0 commit comments

Comments
 (0)