Comparing version 3.1.3 to 4.0.0
@@ -8,3 +8,3 @@ 'use strict'; | ||
var delays = isNaN(time) ? time : {socket: time, connect: time}; | ||
var delays = isNaN(time) ? time : {connect: time}; | ||
var host = req._headers ? (' to ' + req._headers.host) : ''; | ||
@@ -11,0 +11,0 @@ |
{ | ||
"name": "timed-out", | ||
"version": "3.1.3", | ||
"version": "4.0.0", | ||
"description": "Emit `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -33,3 +33,3 @@ # timed-out [![Build Status](https://travis-ci.org/floatdrop/timed-out.svg?branch=master)](https://travis-ci.org/floatdrop/timed-out) | ||
Time in milliseconds to wait for `connect` event on socket and also time to wait on inactive socket. | ||
Time in milliseconds to wait for `connect` event on socket. | ||
@@ -39,3 +39,3 @@ Or you can pass Object with following fields: | ||
- `connect` - time to wait for connection | ||
- `socket` - time to wait for activity on socket | ||
- `socket` - time to wait for activity on socket (this can break sockets from keep-alive pool) | ||
@@ -42,0 +42,0 @@ ## License |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4081