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

bittorrent-dht

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bittorrent-dht - npm Package Compare versions

Comparing version 3.2.2 to 3.2.3

26

client.js

@@ -86,2 +86,3 @@ module.exports = DHT

self._ipv = opts.ipv || 4
self._rotateInterval = null

@@ -284,3 +285,2 @@ /**

clearTimeout(self._bootstrapTimeout)
clearInterval(self._rotateInterval)

@@ -485,15 +485,17 @@

})
startBootstrapTimeout()
}
function startBootstrapTimeout () {
setTimeout(function () {
if (self.destroyed) return
// If 0 nodes are in the table after a timeout, retry with bootstrap nodes
if (self.nodes.count() === 0) {
self._debug('No DHT bootstrap nodes replied, retry')
lookup()
}
}, BOOTSTRAP_TIMEOUT).unref()
}
lookup()
// TODO: keep retrying after one failure
self._bootstrapTimeout = setTimeout(function () {
if (self.destroyed) return
// If 0 nodes are in the table after a timeout, retry with bootstrap nodes
if (self.nodes.count() === 0) {
self._debug('No DHT bootstrap nodes replied, retry')
lookup()
}
}, BOOTSTRAP_TIMEOUT)
if (self._bootstrapTimeout.unref) self._bootstrapTimeout.unref()
})

@@ -500,0 +502,0 @@ }

{
"name": "bittorrent-dht",
"description": "Simple, robust, BitTorrent DHT implementation",
"version": "3.2.2",
"version": "3.2.3",
"author": {

@@ -32,3 +32,3 @@ "name": "Feross Aboukhadijeh",

"ip": "^0.3.0",
"standard": "^3.3.1",
"standard": "^4.5.2",
"tape": "^4.0.0"

@@ -35,0 +35,0 @@ },

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