Commit Graph

34 Commits

Author SHA1 Message Date
galargh
50f065b4df chore: fix revive issues 2025-06-11 10:00:47 +01:00
sukun
455a983b0e swarm_test: support more transports for GenSwarm (#3130) 2025-05-16 16:06:54 +05:30
Marten Seemann
4623690009 switch from github.com/libp2p/go-libp2p-core to core 2022-08-17 17:13:02 +03:00
Marten Seemann
8d2e54e163 update go-libp2p-core, remove stream methods from network.Notifiee (#1521) 2022-05-25 06:51:37 -07:00
Marten Seemann
3effab121a switch from github.com/libp2p/go-libp2p-swarm to p2p/net/swarm 2022-04-21 13:35:04 +01:00
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
b6f93bdc53 wait longer for connection establishment in TestNotifications 2021-07-27 12:38:27 +02:00
Marten Seemann
1b9128f18e use a context for OpenStream and NewStream 2020-12-19 11:22:42 +07:00
Steven Allen
a731919405 fix: fire a listen close event when closing the listener
fixes https://github.com/libp2p/go-libp2p-swarm/issues/163
2020-02-25 19:41:48 -08:00
Raúl Kripalani
e132f6af3f migrate to consolidated types; remove CircleCI config (#127) 2019-05-26 15:55:50 +01: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
Steven Allen
10de0c316c Update stream muxer.
* Add in the reset method and use it instead of Close. Close now only closes one
  side of the connection.
2017-09-12 17:38:02 -07:00
Steven Allen
4333b4cf30 update deps
* Also, make notifications async to prevent them from deadlocking.
2017-07-20 10:20:29 -07:00
Jeromy
9661f5e7ab gx publish 1.6.9 2017-02-03 13:05:16 -08:00
Jeromy
5c58b97791 gx publish 1.6.8 2017-02-03 11:02:21 -08:00
Jeromy
05b9ca6039 update deps 2016-10-04 21:18:07 -07:00
Jeromy
dfae5c7dd6 extract net interface and metrics 2016-10-04 13:56:20 -07:00
Jeromy
17194ccda6 switch to using stdlib context package 2016-10-03 11:00:00 -07:00
Jeromy
a2a399b0ee update local import paths to reflect org change 2016-08-10 09:59:14 -07:00
Jeromy
f223e85a36 update multistream deps and fix code to work with new changes 2016-08-10 09:48:34 -07:00
Jeromy
b58b106ecd rewrite all package paths to dvcs 2016-04-27 12:59:04 -07:00
Jeromy
995f55cbe0 recursive dependency update of utp lib 2016-04-27 10:12:51 -07:00
Jeromy
c218be3e56 move some deps out as gx packages 2016-04-11 23:24:32 -07:00
Jeromy
55941459a2 update version of go-multiaddr 2016-03-03 13:03:24 -08:00
Jeromy
3cdb2f50f7 path rewrites 2016-01-04 05:45:58 -08:00
Jeromy
2d1b1db0e4 WIP 2015-12-06 23:11:16 -08:00
Jeromy
a120be4ee5 migrate to gx namespace 2015-11-18 16:11:24 -08:00
Jeromy
7d2dd014c8 vendor in notifier 2015-11-15 18:42:27 -08:00
Jeromy
21e5c03e68 fixes for sha3 2015-11-15 18:28:35 -08:00
Jeromy
5070870e7b more vendoring 2015-11-15 11:56:01 -08:00
Jeromy
9b779001c2 extract from 0.4.0 2015-11-11 16:19:51 -08:00
Juan Batiz-Benet
9bf24a5968 rewrote imports to p2p 2015-09-30 19:24:00 -04:00
Juan Batiz-Benet
4ab021d79b move to p2p dir 2015-09-30 18:42:55 -04:00