WIP: initial prototype
- Standardized event emitters - Refactored transport.request to have a better handling of the state - Added sniff event - Improved abort handling
This commit is contained in:
@ -77,6 +77,15 @@ class Connection {
|
||||
}
|
||||
})
|
||||
|
||||
// updates the ended state
|
||||
request.on('abort', () => {
|
||||
debug('Request aborted', params)
|
||||
if (ended === false) {
|
||||
ended = true
|
||||
this._openRequests--
|
||||
}
|
||||
})
|
||||
|
||||
// Disables the Nagle algorithm
|
||||
request.setNoDelay(true)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user