Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yakaa

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yakaa - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

13

http.js

@@ -69,3 +69,3 @@ 'use strict';

if (!socket.destroyed && self.requests[name] && self.requests[name].length) {
if (!self.isSocketDestroyed(socket) && self.requests[name] && self.requests[name].length) {
self.requests[name].shift().onSocket(socket);

@@ -81,3 +81,3 @@ if (self.requests[name].length === 0) {

var req = socket._httpMessage;
if (req && req.shouldKeepAlive && !socket.destroyed && self.options.keepAlive) {
if (req && req.shouldKeepAlive && !self.isSocketDestroyed(socket) && self.options.keepAlive) {
var freeSockets = self.freeSockets[name];

@@ -138,2 +138,7 @@ var freeLen = freeSockets ? freeSockets.length : 0;

Agent.prototype.isSocketDestroyed = function(socket) {
// Different Node versions have different names for the property
return socket.destroyed || socket._destroyed;
};
// Get the key for a given set of request options

@@ -270,3 +275,3 @@ Agent.prototype.getName = function(options) {

var name = this.getName(options);
debug('removeSocket', name, 'destroyed:', s.destroyed);
debug('removeSocket', name, 'destroyed:', this.isSocketDestroyed(s));
var sets = [this.sockets];

@@ -277,3 +282,3 @@

// If the socket was destroyed, remove it from the free buffers too.
if (s.destroyed)
if (this.isSocketDestroyed(s))
sets.push(this.freeSockets);

@@ -280,0 +285,0 @@

{
"name": "yakaa",
"version": "1.0.0",
"version": "1.0.1",
"description": "Yet Another Keep-Alive Agent",

@@ -5,0 +5,0 @@ "main": "index.js",

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