Jacob Heun
ae52d483fc
test: bump delay for ci
2020-01-24 14:40:40 +01:00
Jacob Heun
2570a1ba30
fix: release tokens as soon as they are available
2020-01-24 14:40:40 +01:00
Jacob Heun
633b0c291f
fix: clean up pending dials abort per feedback
2020-01-24 14:40:40 +01:00
Jacob Heun
ba02764c5f
feat: abort all pending dials on stop
2020-01-24 14:40:40 +01:00
Jacob Heun
85988cfaab
chore: fix lint
...
test: reduce interval of randomwalk in test
chore(test): glob fix
2020-01-24 14:40:40 +01:00
Jacob Heun
def3574ba0
test: add tests for DialRequest
2020-01-24 14:40:40 +01:00
Jacob Heun
466b4dfd70
chore: update per feedback
2020-01-24 14:40:40 +01:00
Jacob Heun
6ad840c3f3
chore: update docs
...
fix: protect against duplicate token releases
2020-01-24 14:40:40 +01:00
Jacob Heun
b86ef64904
refactor: consolidation multiaddr dial methods
2020-01-24 14:40:40 +01:00
Jacob Heun
b6cd48b798
refactor: clean up dial timeout abort
2020-01-24 14:40:40 +01:00
Jacob Heun
e1e3be8106
refactor: simplify DialRequest logic per feedback
2020-01-24 14:40:40 +01:00
Jacob Heun
e445a17278
feat: add token based dialer
2020-01-24 14:40:40 +01:00
Jacob Heun
12fc069873
fix: clean up peer discovery flow ( #494 )
...
* fix: clean up peer discovery flow
* test(fix): let libp2p start after connecting
* test(fix): dont auto dial in disco tests
2020-01-24 14:40:40 +01:00
Vasco Santos
a020db183a
refactor: async routing ( #489 )
...
* feat: async routing
* chore: put dht extra api commands under content routing
* chore: add default option to createPeerInfo
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
* chore: address review
* chore: rm dlv
2020-01-24 14:40:40 +01:00
Jacob Heun
f77ce39484
refactor: circuit relay to async ( #477 )
...
* refactor: add dialing over relay support
* chore: fix lint
* fix: dont clear listeners on close
* fix: if dial errors already have codes, just rethrow them
* fix: clear the registrar when libp2p stops
* fix: improve connection maintenance with circuit
* chore: correct feedback
* test: use chai as promised
* test(fix): reset multiaddrs on dial test
2020-01-24 14:40:40 +01:00
Vasco Santos
c563e06a60
refactor: dht async/await ( #480 )
...
* refactor: core async (#478 )
* refactor: cleanup core
test: auto dial on startup
* fix: make hangup work properly
* chore: fix lint
* chore: apply suggestions from code review
Co-Authored-By: Vasco Santos <vasco.santos@moxy.studio>
* fix: provide libp2p dialer to the dht
* chore: use dht release
2020-01-24 14:40:40 +01:00
Jacob Heun
f28b09fc0d
refactor: update secio and tests to use it ( #484 )
...
* refactor: use async secio
* test: add secio to most test suites
* chore: update secio version
2020-01-24 14:40:40 +01:00
Jacob Heun
2104578924
refactor: core async ( #478 )
...
* refactor: cleanup core
test: auto dial on startup
* fix: make hangup work properly
* chore: fix lint
* chore: apply suggestions from code review
Co-Authored-By: Vasco Santos <vasco.santos@moxy.studio>
2020-01-24 14:40:40 +01:00
Jacob Heun
c7a54f34f7
refactor: async identify and identify push ( #473 )
...
* chore: add missing dep
* feat: import from identify push branch
https://github.com/libp2p/js-libp2p-identify/tree/feat/identify-push
* feat: add the connection to stream handlers
* refactor: identify to async/await
* chore: fix lint
* test: add identify tests
* refactor: add identify to the dialer flow
* feat: connect identify to the registrar
* fix: resolve review feedback
* fix: perform identify push when our protocols change
2020-01-24 14:40:40 +01:00
Jacob Heun
fe2a8eddbb
refactor: crypto and pnet ( #469 )
...
* feat: add initial plaintext 2 module
* refactor: initial refactor of pnet
* chore: fix lint
* fix: update plaintext api usage
* test: use plaintext for test crypto
* chore: update deps
test: update dialer suite scope
* feat: add connection protection to the upgrader
* refactor: cleanup and lint fix
* chore: remove unncessary transforms
* chore: temporarily disable bundlesize
* chore: add missing dep
* fix: use it-handshake to prevent overreading
* chore(fix): PR feedback updates
* chore: apply suggestions from code review
Co-Authored-By: Vasco Santos <vasco.santos@moxy.studio>
2020-01-24 14:40:40 +01:00
Jacob Heun
5e1dbc21a2
refactor(async): add dialer and upgrader ( #462 )
...
* chore(deps): update connection and multistream
* feat: add basic dial support for addresses and peers
* test: automatically require all node test files
* fix: dont catch and log in the wrong place
* test: add direct spec test
fix: improve dial error consistency
* feat: add dial timeouts and concurrency
Queue timeouts will result in aborts of the dials
* chore: fix linting
* test: verify dialer defaults
* feat: add initial upgrader
* fix: add more test coverage and fix bugs
* feat: libp2p creates the upgrader
* feat: hook up handle to the upgrader
* feat: hook up the dialer to libp2p
test: add node dialer libp2p tests
* feat: add connection listeners to upgrader
* feat: emit connect and disconnect events
* chore: use libp2p-interfaces
* fix: address review feedback
* fix: correct import
* refactor: dedupe connection creation code
2020-01-24 14:40:40 +01:00