Commit Graph

10 Commits

Author SHA1 Message Date
431219db93 feat: support listen on array
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
2019-04-18 15:32:00 +02:00
776a5246b5 test: add async/await tests 2019-04-12 15:53:17 +08:00
6cf8f71d10 chore: callbacks -> async / await
BREAKING CHANGE: All places in the API that used callbacks are now replaced with async/await
2019-04-04 09:12:00 -04:00
4b04b17dfa fix: invalid ip address and daemon can be crashed by remote user
Per the nodeJS documentation, a Net socket.remoteAddress value may
be undefined if the socket is destroyed, as by a client disconnect.
A multiaddr cannot be created for an invalid IP address (such as
the undefined remote address of a destroyed socket). Currently
the attempt results in a crash that can be triggered remotely. This
commit catches the exception in get-multiaddr and returns an
undefined value to listener rather than throwing an exception when
trying to process defective or destroyed socket data. Listener then
terminates processing of the incoming p2p connections that generate
this error condition.

fixes: https://github.com/libp2p/js-libp2p-tcp/issues/93
fixes: https://github.com/ipfs/js-ipfs/issues/1447
2018-07-31 13:51:27 +02:00
f8f52665f7 fix: clearing timeout when closes (#87) 2018-02-07 05:43:15 +00:00
a54bb83657 feat: p2p addrs situation (#82)
* chore: update gitignore

* chore: update CI configs

* chore: update deps

* chore: small refactor
2017-09-03 10:01:16 +01:00
e204517a51 fix: catch errors on incomming sockets 2017-04-07 11:51:56 -04:00
49e23f1961 refactor: use lodash.includes instead of lodash.contains
As `loadash.contains` is deprecated.
2016-12-04 13:28:18 +01:00
d9f65e0b0c feat(readme): add pull-streams documentation 2016-09-05 18:31:34 -04:00
5e89a2608b feat(pull): migration to pull-streams 2016-09-05 18:31:34 -04:00