New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tchannel

Package Overview
Dependencies
Maintainers
8
Versions
225
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tchannel - npm Package Compare versions

Comparing version 3.5.25 to 3.5.26

2

package.json

@@ -5,3 +5,3 @@ {

"author": "mranney@uber.com",
"version": "3.5.25",
"version": "3.5.26",
"scripts": {

@@ -8,0 +8,0 @@ "lint": "jshint .",

@@ -235,3 +235,3 @@ // Copyright (c) 2015 Uber Technologies, Inc.

var conn = self.connections[i];
conn.operations.setMaxTombstoneTTL(ttl);
conn.ops.setMaxTombstoneTTL(ttl);
}

@@ -238,0 +238,0 @@ };

@@ -109,2 +109,32 @@ // Copyright (c) 2015 Uber Technologies, Inc.

allocCluster.test('peer can setMaxTombstoneTTL', {
numPeers: 2
}, function t(cluster, assert) {
var server = cluster.channels[0];
var client = cluster.channels[1];
var serverHost = cluster.hosts[0];
server.makeSubChannel({
serviceName: 'server'
});
var subClient = client.makeSubChannel({
serviceName: 'server',
peers: [server.hostPort]
});
var peer = subClient.peers.get(serverHost);
var socket = peer.makeOutSocket();
var conn = peer.makeOutConnection(socket);
peer.addConnection(conn);
assert.doesNotThrow(function noThrow() {
peer.setMaxTombstoneTTL(400);
});
client.close();
server.close();
assert.end();
});
allocCluster.test('peer close should not leak connections', {

@@ -111,0 +141,0 @@ numPeers: 2

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