8 Commits

Author SHA1 Message Date
Maciej Krüger
dc38263ec4
feat: Use pull net 2018-08-02 17:24:03 +02:00
TomCoded
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
Pedro Teixeira
f8f52665f7 fix: clearing timeout when closes (#87) 2018-02-07 05:43:15 +00:00
David Dias
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
David Dias
e204517a51 fix: catch errors on incomming sockets 2017-04-07 11:51:56 -04:00
Prashanth Chandra
49e23f1961 refactor: use lodash.includes instead of lodash.contains
As `loadash.contains` is deprecated.
2016-12-04 13:28:18 +01:00
David Dias
d9f65e0b0c feat(readme): add pull-streams documentation 2016-09-05 18:31:34 -04:00
dignifiedquire
5e89a2608b feat(pull): migration to pull-streams 2016-09-05 18:31:34 -04:00