209 Commits

Author SHA1 Message Date
vyzo
0e288dc741 delete mesh before sending prunes on leave 2018-06-12 08:00:17 -07:00
vyzo
64d35994d1 shuffle peers 2018-06-12 08:00:17 -07:00
vyzo
8fbc4e1c70 implement mcache 2018-06-12 08:00:17 -07:00
vyzo
07875f149e implement flush 2018-06-12 08:00:17 -07:00
vyzo
74a10cfa70 piggybacking details 2018-06-12 08:00:17 -07:00
vyzo
7251c64e65 control message piggybacking logic 2018-06-12 08:00:17 -07:00
vyzo
78618fce23 maintain fanout peer lists on heartbeat 2018-06-12 08:00:17 -07:00
vyzo
bc25116516 clean peers that have left the topic on heartbeat 2018-06-12 08:00:17 -07:00
vyzo
73da341386 hearbeat preliminaries: overlay management 2018-06-12 08:00:17 -07:00
vyzo
34509d47b3 implement Join and Leave, refactor sendRPC 2018-06-12 08:00:17 -07:00
vyzo
e1fbe11c97 refactor Publish to use getPeers 2018-06-12 08:00:17 -07:00
vyzo
6a177a7396 handle gossipsub control messages 2018-06-12 08:00:17 -07:00
vyzo
dd50a31c40 add gossipsub control messages 2018-06-12 08:00:17 -07:00
vyzo
375c4176b9 gossipsub publish 2018-06-12 08:00:17 -07:00
vyzo
b867200fee gossipsub: heartbeat timer 2018-06-12 08:00:17 -07:00
vyzo
d6104094c8 increase timeCache length to 120s 2018-06-12 08:00:17 -07:00
vyzo
458c75b33f add TODO for reliable announcements 2018-06-12 08:00:17 -07:00
vyzo
b09c9d1a48 check and mark seen messages prior to validation
this allows us to avoid revalidating messages, either because they were concurrently
received or were previously rejected by the validator.
also allows us to filter invalid messages from gossip.
2018-06-12 08:00:17 -07:00
vyzo
448f380722 gossipsub: router outline 2018-06-12 08:00:17 -07:00
vyzo
8680a79d3a add Join/Leave to PubSubRouter interface
advanced routers will want to know when they are subscribed to a topic as
they may want to send control messages.
2018-06-12 08:00:17 -07:00
Steven Allen
1c92f1a4f2 gx publish 0.9.17 gx/v0.9.17 2018-06-09 10:28:48 -07:00
Steven Allen
007a3fc768
Merge pull request #82 from libp2p/feat/pluggable-protocol
Make FloodSub Protocols Configurable
2018-06-09 17:28:22 +00:00
Steven Allen
37a9fdb70a gx publish 0.9.16 gx/v0.9.16 2018-06-08 22:31:49 -07:00
Steven Allen
56e1c535e8 gx publish 0.9.15 gx/v0.9.15 2018-06-08 20:26:20 -07:00
Erin Swenson-Healey
75fcbf0c2c New -> NewFloodsubWithProtocols 2018-06-07 09:21:08 -07:00
Erin Swenson-Healey
6840b190db allow FloodSubRouter to be configured with protocols 2018-06-07 09:21:08 -07:00
Steven Allen
0070dfbf72
Merge pull request #73 from libp2p/feat/refactor
update for transport refactor
2018-06-06 07:26:37 +00:00
Steven Allen
351bd6eb43 gx publish 0.9.14 gx/v0.9.14 2018-06-05 15:53:48 -07:00
Steven Allen
f6afd637b8 make sure to *fully* close streams
We need to wait for the EOF from the other side when closing from the sending
side (unless we've already seen an EOF).
2018-06-05 15:53:25 -07:00
Steven Allen
d02440c25d fix tests for swarm refactor 2018-06-05 15:53:25 -07:00
Steven Allen
bac5c5ae79
Merge pull request #81 from libp2p/gx/update-multistream
gx publish 0.9.13
2018-06-04 16:46:14 +00:00
Steven Allen
d15714d22d gx publish 0.9.13 gx/v0.9.13 2018-06-04 09:42:52 -07:00
Steven Allen
cb37ff1fba
Merge pull request #80 from libp2p/fix/78
fix segfault on arm due to bad atomic access
2018-06-03 03:34:00 +00:00
Steven Allen
4f3a97bcc3 fix segfault on arm due to bad atomic access
fixes #78
2018-05-29 18:59:04 +02:00
Steven Allen
4e84ab6c81 gx publish 0.9.12 gx/v0.9.12 2018-04-16 14:13:49 +09:00
vyzo
7f3ecddf94
Merge pull request #72 from libp2p/fix/issue-69
Don't block the event loop because of slow subscriptions
2018-03-07 08:06:55 +02:00
vyzo
1538e0d417 downgrade dropped message logging to Infof 2018-03-07 07:57:42 +02:00
vyzo
d5d886d853 Don't block the event loop if the subscriber is too slow
Closes #69
2018-03-07 07:57:42 +02:00
Steven Allen
e48c6f5d4a
Merge pull request #71 from libp2p/gx/publish
gx publish 0.9.11
2018-03-01 21:14:33 +00:00
vyzo
cbeeb4e194 gx publish 0.9.11 gx/v0.9.11 2018-03-01 23:05:43 +02:00
vyzo
ceff712aba
Merge pull request #70 from libp2p/feat/remove-validator
UnregisterTopicValidator for removing topic validators
2018-02-28 22:35:58 +02:00
vyzo
ed1dd154b6 add test for UnregisterTopicValidator 2018-02-28 22:26:42 +02:00
vyzo
399bcb25a6 UnregisterTopicValidator for removing topic validators 2018-02-28 22:14:54 +02:00
Steven Allen
89c19c0b98 gx publish 0.9.10 gx/v0.9.10 2018-01-31 18:54:35 -08:00
vyzo
d553fb800c
Merge pull request #60 from libp2p/feat/modularization
Modularized PubSub Routing
2018-01-30 20:59:47 +02:00
Steven Allen
b595000d49 gx publish 0.9.9 gx/v0.9.9 2018-01-27 17:47:38 -08:00
vyzo
327e72d4fd demote erros per #62 2018-01-27 09:54:57 +02:00
vyzo
e7b1fe6e75 modularized pubsub; Flooding is just a routing method. 2018-01-27 09:54:57 +02:00
vyzo
c036ca0c01
Merge pull request #62 from libp2p/feat/demote-errors
demote errors/warnings to info
2018-01-27 09:47:23 +02:00
Steven Allen
098f1d5819 demote errors/warnings to info
* dropped/killed connections are not errors.
* handleIncomingRPC/publishMessage do not return errors.
2018-01-26 15:00:47 -08:00