Commit Graph

20 Commits

Author SHA1 Message Date
galargh
50f065b4df chore: fix revive issues 2025-06-11 10:00:47 +01:00
Sukun
ee07b39ad9 use atomic.Bool instead of int32 operations (#2089) 2023-02-13 15:08:28 -08:00
Marten Seemann
4623690009 switch from github.com/libp2p/go-libp2p-core to core 2022-08-17 17:13:02 +03:00
Marten Seemann
c51c1b642c swarm: fix race condition in TestFailFirst (#1490) 2022-05-16 12:24:20 -07:00
Marten Seemann
9adcf8f5ea only check for self dials once 2021-08-27 12:10:28 +01:00
Marten Seemann
e5b2a35de8 rename DialSync.DialLock to Dial 2021-08-27 12:10:28 +01:00
Marten Seemann
8252673e1d remove unused context in Swarm.dialWorkerLoop 2021-08-23 22:38:50 +01:00
Marten Seemann
258e1e698b fix race condition in TestFailFirst 2021-08-22 10:16:39 +01:00
vyzo
c7e4304bd4 make DialWorkerFunc, NewDialSync private
they work with private data types, so there is no point in having them public
2021-04-01 15:36:55 +03:00
vyzo
c2e44d4b3d add new TestDialSelf
so that we exercise the dialWorker dial to self error path
2021-04-01 12:47:22 +03:00
vyzo
7db6ec9ea1 make DialRequest and DialResponse private 2021-04-01 12:13:03 +03:00
vyzo
df78bf89f4 make dialWorker return an error for self dials and responsible for spawning the loop 2021-03-31 12:34:54 +03:00
vyzo
1efe95aff0 fix dial_sync tests 2021-03-30 20:38:48 +03: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
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
9bd9701f20 add a test to stress the lock order race condition 2016-10-28 14:14:44 -07:00
Jeromy
05b9ca6039 update deps 2016-10-04 21:18:07 -07:00
Jeromy
da731da3f5 swarm: implement new DialSync manager code 2016-09-08 10:37:15 -07:00