Commit Graph

14 Commits

Author SHA1 Message Date
Marten Seemann
a872d26b7c use testing.Cleanup to shut down peerstore and revert most test changes 2021-09-08 17:25:49 +01:00
Marten Seemann
782897ea41 stop using goprocess to control teardown 2021-09-08 17:25:48 +01:00
Marten Seemann
fc08179d1c add a test case for the testing package 2021-08-27 11:54:25 +01:00
Marten Seemann
67f91a0be9 run connection gating tests on both TCP and QUIC
Also disables one test that doesn't work with QUIC, as we always
complete the handshake before gating there.
2021-04-23 10:25:57 +07:00
Aarsh Shah
0432da356d Enable QUIC in Test Swarm (#235)
* add quic to swarm testing

* update go
2021-01-29 00:23:57 +05:30
Steven Allen
4bd32948e1 slim down dependencies
Removes secio, quic, and circuit dependencies. We were using them for testing
but we don't actually need them.
2020-06-24 10:38:00 -07:00
Aarsh Shah
fba72557b3 configure private key for test swarm 2020-06-02 15:45:59 +05:30
Aarsh Shah
dc499b7e07 implement connection gating support: intercept peer, address dials, upgraded conns (#201) 2020-05-15 14:26:21 +01:00
Steven Allen
9b8dbb7982 fix: avoid calling AddChild after the process may shutdown. 2020-04-22 17:52:32 -07:00
Steven Allen
11ed2c35c6 test: close peerstore when closing the test swarm 2019-09-13 13:37:04 -07:00
Raúl Kripalani
e132f6af3f migrate to consolidated types; remove CircleCI config (#127) 2019-05-26 15:55:50 +01:00
Steven Allen
cf873f59f6 dep: import go-smux-* into the libp2p org 2019-05-21 19:33:31 -07:00
Steven Allen
602f9d4cef gx: update go-libp2p-peerstore 2018-09-07 22:05:41 -07:00
Steven Allen
4e39954ac9 refactor for new transports
Removes:

* go-libp2p-conn logic (moved to transports)
* go-libp2p-peerstream (moved here)

Changes:

* New transport interface.
* Explicit over implicit (the implicit automagic now all lives in go-libp2p):
  * No more default transports, muxers, etc.
  * No more fallback dialer. Transports are now *required*.
* Stream opening:
  * Connection picking logic (instead of just picking the first).
  * Tries harder to open a stream of some connections happen to be closed.
* Stream closing:
  * No longer treats half-closed streams as fully closed. Users *must* read the
    an EOF or reset the stream for it to be garbage collected.
* No more polling for dead connections.
* Multiplexers are now *non-optional*. Really, they haven't been optional for a
  while but we still pretended that they were.
* No more Network type alias. It added a bunch of code and didn't really provide
  anything but an alternative set of methods that do the same thing.
* Notifications:
  * New guarantee: connection open notifications will complete before connection
    close notifications begin.
  * Given that, notifications are now delivered in parallel. No more
    notification backlogs blocking connection closing/opening.
2018-06-04 19:19:48 -07:00