fix(client): Fix socket hanging issues and add auto-drain feature
- Fixed socket hanging issues caused by unconsumed response bodies - Added automatic response body draining to prevent socket pool exhaustion - Made auto-drain configurable via autoDrain() method (enabled by default) - Updated all tests to properly consume response bodies - Enhanced documentation about response body consumption
This commit is contained in:
16
changelog.md
16
changelog.md
@@ -1,5 +1,21 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-07-29 - 4.2.1 - fix(client)
|
||||||
|
Fix socket hanging issues and add auto-drain feature
|
||||||
|
|
||||||
|
**Fixes:**
|
||||||
|
- Fixed socket hanging issues caused by unconsumed response bodies
|
||||||
|
- Resolved test timeout problems where sockets remained open after tests completed
|
||||||
|
|
||||||
|
**Features:**
|
||||||
|
- Added automatic response body draining to prevent socket pool exhaustion
|
||||||
|
- Made auto-drain configurable via `autoDrain()` method (enabled by default)
|
||||||
|
- Added logging when auto-drain activates for debugging purposes
|
||||||
|
|
||||||
|
**Improvements:**
|
||||||
|
- Updated all tests to properly consume response bodies
|
||||||
|
- Enhanced documentation about the importance of consuming response bodies
|
||||||
|
|
||||||
## 2025-07-29 - 4.2.0 - feat(client)
|
## 2025-07-29 - 4.2.0 - feat(client)
|
||||||
Add handle429Backoff method for intelligent rate limit handling
|
Add handle429Backoff method for intelligent rate limit handling
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/smartrequest",
|
"name": "@push.rocks/smartrequest",
|
||||||
"version": "4.2.0",
|
"version": "4.2.1",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "A module for modern HTTP/HTTPS requests with support for form data, file uploads, JSON, binary data, streams, and more.",
|
"description": "A module for modern HTTP/HTTPS requests with support for form data, file uploads, JSON, binary data, streams, and more.",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
Reference in New Issue
Block a user