Steven Allen
7eaeeaa9fe
Merge pull request #461 from libp2p/fix/remove-protocol-version-check
...
don't disconnect on protocol version mismatch
2018-10-24 07:35:23 -07:00
Steven Allen
dd7868a1a7
don't disconnect on protocol version mismatch
...
Sending a protocol version is nice. However, this "disconnect if our versions
are different" logic makes the version entirely useless (because we can't change
it).
Really, each indevidual protocol is versioned so let's just leave it at that. If
we make a breaking change that requires a protocol bump, we can do that and
then switch on the other side's version. However, we'll have to wait for the
entire network to upgrade for that to work.
2018-10-24 07:00:42 -07:00
vyzo
48e0effd6a
resolve import cycle in ping test
2018-10-19 12:47:08 +03:00
vyzo
0fa1c25479
ping service in basic host
2018-10-19 12:28:58 +03:00
vyzo
a768598c50
free standing Ping function
2018-10-19 12:22:13 +03:00
vyzo
1536433f6b
use TempAddrTTL for relay addrs
2018-10-18 18:37:35 +03:00
vyzo
c52f45235d
simplify routed relay addr check
...
the first component must be P_P2P, or else we have a specific address to dial
2018-10-08 15:04:43 +03:00
vyzo
dd9b96f702
check for old-style relay addrs
2018-10-06 09:40:24 +03:00
vyzo
f3c4a0c48b
fix relay-specific address dialing in routed host
2018-10-05 23:01:22 +03:00
Steven Allen
27f502e525
Merge pull request #443 from libp2p/fix/log-spam
...
downgrade protocol mux failure log to debug
2018-10-04 17:41:02 -07:00
vyzo
e7fc8861f9
downgrade protocol mux failure log to debug
2018-10-01 10:34:39 +03:00
Can ZHANG
92ec4b2d18
Updates due to code review
2018-09-29 20:16:09 +08:00
Can ZHANG
96df62bd5b
Changes on discussion
...
- map internal -> []{external -> { observer -> [time, direction] } }
- some cleaning
2018-09-26 16:52:46 +08:00
Can ZHANG
b4e4d496ea
Fix test
2018-09-26 16:52:46 +08:00
Can ZHANG
d859fb0dd7
Track more info for observed addresses
2018-09-26 16:52:46 +08:00
QYuan
38abbc9128
Delete extra comments
2018-09-21 10:33:15 +08:00
vyzo
1959dde238
Merge pull request #423 from KerwinKoo/master
...
Just repair spelling mistake
2018-09-14 12:09:26 +03:00
gukq
2ea753ece0
Just repair spelling mistake
...
Signed-off-by: gukq <gukaiqiang@gmail.com>
2018-09-14 17:03:39 +08:00
Steven Allen
8f826ec266
Merge pull request #412 from cannium/deduplicate-addrs
...
Deduplicate addresses of host output
2018-09-13 23:04:09 +00:00
Can ZHANG
e6b1e07f11
Updates due to code review
2018-09-13 11:38:16 +08:00
Steven Allen
e436bcc391
always remove connection from identify service map
...
fixes #419
Also call FullClose in a goroutine; no need to block this.
(not happy with that but I'm starting to think we need to rethink stream
closing, again...)
2018-09-10 15:51:09 -07:00
Steven Allen
c46e8d6e36
gx: update go-libp2p-peerstore
2018-09-07 22:11:23 -07:00
Can ZHANG
ef51fdbe09
Deduplicate addresses of host output
2018-09-07 16:06:16 +08:00
Steven Allen
bb971794b7
disable mdns logging from init
...
(avoids the race condition)
2018-09-02 14:31:46 -07:00
Marten Seemann
0d38750db8
use the new DisableLogging mdns option, don't turn off logging globally
2018-08-31 12:08:18 +07:00
Cole Brown
5a704d2daa
Add Stat to mock net conns and streams
2018-08-27 17:30:51 -07:00
Steven Allen
7d6f9521c2
Merge pull request #380 from libp2p/fix/reset-ping-stream
...
always reset ping streams when done
2018-08-21 05:22:22 +00:00
Steven Allen
6f0dcfa108
Merge pull request #389 from libp2p/fix/mock-streams
...
mock stream fixes
2018-08-16 17:44:22 +00:00
Steven Allen
f0eba35c6e
Merge pull request #388 from libp2p/fix/id-reset
...
reset when we fail in identify
2018-08-16 17:43:59 +00:00
Steven Allen
c83318bf08
Revert "Merge pull request #386 from libp2p/fix/correct-external-addr"
...
This reverts commit aca83b9b63
, reversing
changes made to 86b8929d4d
.
This was is not the correct fix. We already expose these addresses via the
host's AllAddrs method. The real problem is probably that we just don't ever
tell anyone about them (unless we disconnect and reconnect to our nearby DHT
nodes).
We need an address gossip protocol.
2018-08-13 16:52:49 -07:00
Steven Allen
f6ad991bb5
update gogo protobuf
...
and regenerate protobuf files
2018-08-08 18:08:13 -07:00
Steven Allen
784ff9c5a5
fix closing of mock streams in test
2018-08-08 13:37:29 -07:00
Steven Allen
f56473fb01
make sure reset works on half-closed streams
2018-08-08 13:36:01 -07:00
Steven Allen
2e13245085
reset when we fail in identify
2018-08-08 11:48:45 -07:00
Steven Allen
7133f4124f
when we do a nat port mapping, explicitly remember the mapped address
...
related to #383
I won't call this *fixed* yet but it should help.
2018-08-02 14:18:47 -07:00
Steven Allen
72df25af76
always reset ping streams when done
...
Currently, we leak a stream. We could use FullClose but, IMO, it's not worth it.
We might as well just reset and walk away.
2018-07-27 10:54:34 -07:00
Steven Allen
b4428fda58
reduce error to warning and log the error
...
This happens all the time in tests where we intentionally use fake keys for
performance.
Anyways, users probably don't want their logs spammed with errors they can't do
anything about.
2018-06-15 14:27:22 -07:00
Steven Allen
74486ec970
Merge pull request #352 from libp2p/nit/optimize
...
check for connectedness using Connectedness
2018-06-14 18:44:06 +00:00
Łukasz Kurowski
39791b176c
function cannot be formatted as string
2018-06-12 21:39:29 +02:00
Steven Allen
a361bf0394
check for connectedness using Connectedness
...
(counting open connections requires copying)
2018-06-09 10:23:09 -07:00
Steven Allen
1257b87aab
Merge pull request #346 from libp2p/bugs/mock-stream-latency
...
Add test which demonstrates how Mocknet latency works
2018-06-07 04:54:40 +00:00
Erin Swenson-Healey
2f001009f2
loosen tolerance in latency test
2018-06-06 07:49:29 -07:00
Erin Swenson-Healey
bb9d55ac08
add test which demonstrates how Mocknet latency works
2018-06-05 17:35:18 -07:00
Steven Allen
41c6834850
refactor for transport changes
...
Also, make the libp2p constructor fully useful. There should now be no need to
manually construct a swarm/host.
2018-06-04 21:22:24 -07:00
Jakub Sztandera
b6ae1d152a
misc: downgrade a warning to info
...
It is source of most warning noise in Warning channel and we would like
to enable warning channel some time in future by default
2018-03-27 20:46:27 +02:00
Hector Sanjuan
cc1c2af4b7
Update go-detect-race to latest packaged version and location
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-16 11:26:39 +01:00
Łukasz Magiera
498c841eb9
Skip TestMdnsDiscovery
2018-02-14 16:04:14 +01:00
Steven Allen
5f75373b53
make the identify test less racy
2018-01-27 21:14:08 -08:00
Alexey Kholupko
7c7bd31d3e
mDNS discovery starts announcing right away: does not wait for first interval to elapse.
...
Closes #256
2018-01-27 16:32:58 +07:00
Steven Allen
d7c4c0a202
add test for forgetting address records
2018-01-19 22:37:14 -08:00