Commit Graph

1621 Commits

Author SHA1 Message Date
Steven Allen 4fa48655bb chore: update yamux 2021-05-04 21:43:48 -07:00
Steven Allen 3e5c305456
Merge pull request #1088 from libp2p/feat/expose-autonat
fix: re-expose AutoNAT service on BasicHost
2021-05-04 20:39:47 -07:00
Steven Allen e482b45c66 fix: re-expose AutoNAT service on BasicHost
Unfortunately, lotus relies on this and we don't have a good alternative
at the moment.

1. The "correct" way to get the status is to subscribe to the
"discoverability" events and read the first event (you're guaranteed to
see a "current status" event). However, this is a bit annoying.
2. Ideally, you'd call host.Addrs() to get the list of "good" addresses.
Unfortunately, we don't feed enough information back into the Host from
AutoNAT for this to be truly useful (yet).
2021-05-04 20:21:22 -07:00
Steven Allen a8e8215edc
Merge pull request #1087 from libp2p/chore/update-deps
chore: update deps
2021-05-04 20:06:20 -07:00
Steven Allen 7ab7b978b7 chore: update deps 2021-05-04 19:56:06 -07:00
Steven Allen 47266240e5
Merge pull request #1086 from libp2p/remove-news
remove NEWS.md
2021-05-03 10:28:04 -07:00
Marten Seemann 03e57a24fd remove NEWS.md
Latest meaningful change to this file was in June 2018. That's pretty old news.
2021-05-01 13:19:25 +07:00
Steven Allen a461447ecb
Merge pull request #1084 from libp2p/fix/deflake-proto-change
test: deflake TestProtoDowngrade
2021-04-30 18:06:38 -07:00
Steven Allen c7902333be test: deflake TestProtoDowngrade
1. Don't write "nil". Not all writers handle this well.
2. Write/read an entire string.
3. Improve debuggability.
4. Move the sleep. We _don't_ need to wait for disconnect notifications.
   We _do_ need to wait for the protocol event change to propagate.
2021-04-30 17:30:36 -07:00
Steven Allen 4ca9ecd8de
Merge pull request #1083 from libp2p/web3-bot/sync
sync: update CI config files (and fix tests)
2021-04-30 10:35:30 -07:00
Steven Allen a6747e5b72 test: deflake tests 2021-04-29 22:20:44 -07:00
Steven Allen 0a1044392a chore: update go-libp2p-peerstore
Fixes an issue where, when using peerstore.UpdateAddrs to set the "TTL"
to 0, the specified addresses might subsequently be returned from
peerstore.Addrs.
2021-04-29 20:39:51 -07:00
web3-bot 2e491cb451 add .github/workflows/go-check.yml 2021-04-29 21:35:37 +00:00
web3-bot bc82ad32d0 add .github/workflows/go-test.yml 2021-04-29 21:35:37 +00:00
web3-bot cb9b5238e4 add .github/workflows/automerge.yml 2021-04-29 21:35:37 +00:00
web3-bot 218f33bc62 run gofmt -s 2021-04-29 21:35:37 +00:00
web3-bot 252fd257d4 set Go version to 1.15 and run go mod tidy 2021-04-29 21:35:37 +00:00
web3-bot d329e3d827 disable Travis 2021-04-29 21:35:32 +00:00
Steven Allen 6391bff1bf
Merge pull request #1076 from coryschwartz/feat/fix-staticcheck
static check fixes
2021-04-29 14:30:38 -07:00
Steven Allen 2ad02f79b2 chore: update to go-log v2 2021-04-29 14:15:17 -07:00
Steven Allen 2a72777ef9 fix: address review feedback 2021-04-29 14:13:54 -07:00
Cory Schwartz 12753d3795 advertise util 2021-04-29 14:12:47 -07:00
Cory Schwartz 04a93f4080 static check fixes 2021-04-29 14:08:24 -07:00
Steven Allen 0b6144a02f
Merge pull request #1078 from libp2p/chore/update-deps
chore: update deps
2021-04-26 12:43:11 -07:00
Steven Allen 58b40c1ca8 chore: update deps
- update go-libp2p-swarm to fix some dialing issues.
- update go-netroute/go-sockaddr to fix some (theoretical) memory safety
  issues on windows.
2021-04-26 12:32:31 -07:00
Marten Seemann 6a5da01b04
Merge pull request #1075 from coryschwartz/feat/fix-go-vet
fix go vet
2021-04-20 23:57:41 +07:00
vyzo 3ef2f761d2
Merge pull request #1073 from libp2p/feat/custom-resolver
option for custom dns resolver
2021-04-15 12:17:42 +03:00
Cory Schwartz 628f86c689 fix go vet 2021-04-14 12:27:40 -07:00
vyzo 548e8606cd go mod tidy 2021-04-12 13:40:36 +03:00
vyzo a78f048d9c fix tests 2021-04-12 13:40:10 +03:00
vyzo b313b4af98 option for custom dns resolver 2021-04-12 12:42:56 +03:00
Steven Allen ffd67fd3dc
Merge pull request #1067 from libp2p/chore/update-deps
chore: update deps
2021-03-18 17:08:52 -07:00
Steven Allen 6c0336634a chore: update deps
* update go-log & zap.
* update golang.org/x deps to pull in bug fixes.
* update autonat to simplify some logic
2021-03-18 17:02:28 -07:00
Steven Allen 4919779700
Merge pull request #1066 from libp2p/chore/update-deps
chore: update deps
2021-03-09 09:28:09 -08:00
Steven Allen c39da30592 chore: update deps 2021-03-08 13:35:26 -08:00
Will 6a14d8c239
Merge pull request #1062 from libp2p/fix/autonatrace
fix autonat race
2021-03-01 18:08:05 -08:00
Will Scott c2c5918483
fix autonat race
fix #7947
move `BasicHost.AutoNat` to a private field (it has no public method and shouldn't be accessed afaik.
Instead add a setter for config that sets it while holding the address mutex to prevent reads of the
field at the same time.
2021-02-26 23:21:36 -08:00
vyzo bbde01b33e
Merge pull request #1061 from libp2p/feat/identify-transient
use transient connections in identify streams
2021-02-25 08:51:05 +02:00
vyzo 2a69faae62 use transient connections in identify streams 2021-02-25 08:45:16 +02:00
Aarsh Shah 69916ed465
Emit event for User's NAT Type i.e. Hard NAT or Easy NAT (#1042)
* emit NAT device type
2021-02-19 15:14:03 +05:30
vyzo ab83ffd710
Merge pull request #1055 from libp2p/deps/update
update deps
2021-02-17 12:49:17 +02:00
vyzo 40ca83310f update travis to go 1.15 2021-02-17 12:42:17 +02:00
vyzo 8ea7ba4a88 gomod: update deps 2021-02-17 12:38:11 +02:00
Aarsh Shah c575ec40e1
Finish and Test the simultaneous connect problem in libp2p peers (#1041)
* Implement support for SimOpen.
2021-02-17 13:36:40 +05:30
Aarsh Shah 890f2e86b2
Close peerstore and document Host Close (#1037)
* close peerstore and docs change

* update docs
2021-01-19 10:57:34 +05:30
Aarsh Shah 1c850e1293
Timeout all Identify stream reads (#1032)
* fix: read timeouts on Identify protocols

* fixed tests

* review and go fmt
2021-01-14 11:47:05 +05:30
Marten Seemann 577e752119
Merge pull request #1036 from libp2p/update-yamux-and-mplex
update yamux and mplex, to actually use the context passed to OpenStream
2020-12-19 16:04:27 +07:00
Marten Seemann 7e81b7e411 update yamux and mplex, to actually use the context passed to OpenStream 2020-12-19 15:56:29 +07:00
Marten Seemann a98d3f54dc
Merge pull request #1033 from libp2p/open-stream-context
use a context when opening streams
2020-12-19 12:11:45 +07:00
Marten Seemann 34eb40850b use a context when opening streams 2020-12-19 12:05:19 +07:00