Socket
Socket
Sign inDemoInstall

timed-out

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timed-out - npm Package Compare versions

Comparing version 3.1.3 to 4.0.0

2

index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc