dht-rpc 6.23.0 → 6.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -361,7 +361,7 @@ class DHT extends EventEmitter {
361
361
  }
362
362
 
363
363
  _request(to, force, internal, command, target, value, session, onresponse, onerror) {
364
- if (!this._sendDownHints && command === DOWN_HINT) return null
364
+ if (internal && !this._sendDownHints && command === DOWN_HINT) return null
365
365
  const req = this.io.createRequest(to, null, internal, command, target, value, session)
366
366
  if (req === null) return null
367
367
 
package/lib/health.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const MAX_HEALTH_WINDOW = 4
2
2
  const RESPONSES_SANITY = 4
3
3
  const TIMEOUTS_SANITY = 4
4
- const TIMEOUTS_THRESHOLD = 0.1
4
+ const TIMEOUTS_THRESHOLD = 0.25
5
5
 
6
6
  module.exports = class NetworkHealth {
7
7
  static DEFAULT_MAX_HEALTH_WINDOW = MAX_HEALTH_WINDOW
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dht-rpc",
3
- "version": "6.23.0",
3
+ "version": "6.23.2",
4
4
  "description": "Make RPC calls over a Kademlia based DHT",
5
5
  "main": "index.js",
6
6
  "files": [