Socket
Socket
Sign inDemoInstall

libp2p-tcp

Package Overview
Dependencies
30
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.14.2 to 0.14.3

6

.vscode/launch.json

@@ -16,5 +16,5 @@ {

"--colors",
// "--grep",
// "close listener with connections",
"${workspaceFolder}/test/listen-dial.spec.js"
"--grep",
"upgradeInbound throws",
"${workspaceFolder}/test/compliance.spec.js"
],

@@ -21,0 +21,0 @@ "internalConsoleOptions": "openOnSessionStart"

@@ -0,1 +1,11 @@

<a name="0.14.3"></a>
## [0.14.3](https://github.com/libp2p/js-libp2p-tcp/compare/v0.14.2...v0.14.3) (2019-12-20)
### Bug Fixes
* transport should not handle connection if upgradeInbound throws ([#119](https://github.com/libp2p/js-libp2p-tcp/issues/119)) ([21f8747](https://github.com/libp2p/js-libp2p-tcp/commit/21f8747))
<a name="0.14.2"></a>

@@ -2,0 +12,0 @@ ## [0.14.2](https://github.com/libp2p/js-libp2p-tcp/compare/v0.14.1...v0.14.2) (2019-12-06)

{
"name": "libp2p-tcp",
"version": "0.14.2",
"version": "0.14.3",
"description": "Node.js implementation of the TCP module that libp2p uses, which implements the interface-connection and interface-transport interfaces",

@@ -39,3 +39,3 @@ "leadMaintainer": "Jacob Heun <jacobheun@gmail.com>",

"dirty-chai": "^2.0.1",
"libp2p-interfaces": "^0.1.6",
"libp2p-interfaces": "^0.2.0",
"it-pipe": "^1.1.0",

@@ -42,0 +42,0 @@ "sinon": "^7.5.0",

@@ -5,3 +5,6 @@ 'use strict'

const EventEmitter = require('events')
const log = require('debug')('libp2p:tcp:listener')
const debug = require('debug')
const log = debug('libp2p:tcp:listener')
log.error = debug('libp2p:tcp:listener:error')
const toConnection = require('./socket-to-conn')

@@ -24,3 +27,10 @@ const { CODE_P2P } = require('./constants')

const conn = await upgrader.upgradeInbound(maConn)
let conn
try {
conn = await upgrader.upgradeInbound(maConn)
} catch (err) {
log.error('inbound connection failed to upgrade', err)
return maConn.close()
}
log('inbound connection %s upgraded', maConn.remoteAddr)

@@ -27,0 +37,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc