This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: race-condition that could leave stream in corked state (#78)
If running Node.js 10.2.0 or newer, a race condition would occur in the following scenarios that would leave the stream permanently corked: - Call `flush` while the stream is corked and `bufferWindowTime !== -1` - Call `sendSpan`, `sendTransaction`, `sendError`, or `sendMetricSet` while stream is corked, `bufferWindowTime === -1` and `_writableState.length >= bufferWindowSize`.
- Loading branch information