Milos Gajdos
891af703be
Update route metric when receiving Sync routes
2020-01-17 18:24:36 +00:00
Asim Aslam
474472eedd
Merge pull request #1124 from milosgajdos83/flush-advert-query
...
Use the same logic for advertising routes in Router and Network
2020-01-17 16:49:11 +00:00
Milos Gajdos
23d65145e6
Use the same logic for advertising routes in Router and Network
...
router.Query() allows to query the routes with given router.Strategy.
It uses the same logic as was implemented in flushRoutes but the code
was never updated. This way we are consistent across both router and
network packages.
2020-01-17 16:25:18 +00:00
shu xian
9ea4919b9b
rename mucp source directory to service
2020-01-17 23:53:33 +08:00
Asim Aslam
f78e30770e
Merge pull request #1123 from milosgajdos83/sync-metric
...
Update route metric before sending the Sync message
2020-01-17 15:44:49 +00:00
Milos Gajdos
bf9f319cdf
Update route metric before sending the Sync message
2020-01-17 15:38:28 +00:00
shu xian
ad28b72dd3
rename mucpSource to service
2020-01-17 23:27:41 +08:00
Asim Aslam
8425ae77f8
Merge pull request #1122 from micro/blocking
...
don't block forever
2020-01-17 15:24:03 +00:00
Asim Aslam
d7b9b2713b
don't block forever
2020-01-17 15:23:10 +00:00
Asim Aslam
be788415ad
minor runtime fixes
2020-01-17 14:14:47 +00:00
shu xian
a03791c581
set DefaultClient
2020-01-17 21:32:00 +08:00
Asim Aslam
ee922a3da6
Merge pull request #1121 from milosgajdos83/no-routes-found
...
Continue processing Sync if no routes were returned from router Query
2020-01-17 13:05:47 +00:00
Milos Gajdos
624f1c1980
Continue processing Sync if no routes were returned from router Query
2020-01-17 12:58:13 +00:00
Milos Gajdos
607a226e34
Updated debug logs to make them less verbose
2020-01-17 12:14:56 +00:00
Asim Aslam
bac1bbfd97
Merge pull request #1120 from milosgajdos83/remove-solicit
...
Remove Solicitation from the network
2020-01-16 20:02:05 +00:00
Milos Gajdos
7f9b3b5556
Remove Solicitation from the network
...
Instead, when a new peer is discovered it is sent a sync message i.e. we
do the full sync when discovering peers
2020-01-16 19:43:10 +00:00
Asim Aslam
ba12513199
Merge pull request #1119 from milosgajdos83/sync-best-routes-only
...
Send only best routes via Sync. Only apply best routes.
2020-01-16 18:17:26 +00:00
Milos Gajdos
8fcfbc0d20
Strip unnecessary continue statement
2020-01-16 17:33:53 +00:00
Milos Gajdos
472186c1be
Code consistency. Small bug fix.
2020-01-16 17:04:04 +00:00
Milos Gajdos
60c05bd899
Find the best routes in the routes we would advertise based on Strategy
2020-01-16 16:53:39 +00:00
Milos Gajdos
793e6013e5
Advertise routes with configured strategy. Simplify Sync apply logic
2020-01-16 16:42:23 +00:00
shu xian
071ab7aede
add mucp for config/source
2020-01-17 00:10:15 +08:00
Milos Gajdos
eda8b00f84
Send only best routes via Sync. Only apply best routes.
2020-01-16 16:08:49 +00:00
Asim Aslam
eac2ab3c28
Merge pull request #1117 from micro/scheduler
...
Switch notifier to scheduler
2020-01-16 13:41:13 +00:00
Asim Aslam
76fba34c2f
Merge pull request #1116 from milosgajdos83/query-strategy
...
QueryStrategy to allow querying routes based on Advertising Strategy
2020-01-16 13:39:39 +00:00
Asim Aslam
491a42d352
Switch notifier to scheduler
2020-01-16 13:34:04 +00:00
Milos Gajdos
5e85194a13
QueryStrategy to allow querying routes based on Advertising Strategy
2020-01-16 12:48:36 +00:00
Asim Aslam
689ae7cfc7
Storing tunnel.Session rather than transport.Client
2020-01-16 00:28:58 +00:00
Asim Aslam
19dbd77402
fix net masking in listed routes
2020-01-16 00:12:38 +00:00
Asim Aslam
b194b3adc9
Merge pull request #1115 from micro/net-mask
...
mask the route before sending
2020-01-15 23:13:53 +00:00
Asim Aslam
33a9b3bc17
mask the route before sending
2020-01-15 23:06:58 +00:00
Asim Aslam
6562154573
Fix the next panic
2020-01-15 21:38:37 +00:00
Asim Aslam
b32ebddf85
update nlopes/slack dep
2020-01-15 21:22:07 +00:00
Asim Aslam
b3e3dac975
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-15 21:02:58 +00:00
Asim Aslam
f20e4daa60
fix rand panic
2020-01-15 21:02:53 +00:00
Asim Aslam
f67d87e99d
Merge pull request #1114 from milosgajdos83/network-backward-compatibility
...
Fixed bug:m network.proto backwards compatibility unmarshal
2020-01-15 19:57:57 +00:00
Milos Gajdos
36928b716c
Fixed bug:m network.proto backwards compatibility unmarshal
2020-01-15 19:45:43 +00:00
Asim Aslam
7c7b0ced5f
Merge pull request #1104 from milosgajdos83/network-hackery
...
[WIP] Network hackery
2020-01-14 20:28:32 +00:00
Milos Gajdos
c67ef7e017
Bug fix: skip sending sync message if the peer is not in our graph
2020-01-14 19:37:50 +00:00
Milos Gajdos
dcd925f1e5
Code cleanup; Indentation.
2020-01-14 18:48:42 +00:00
Milos Gajdos
0ea56a5ffe
Fixed tests
2020-01-14 18:22:58 +00:00
Milos Gajdos
821fda41ae
Added Status method to network.Node fixed random segfaults.
2020-01-14 18:12:36 +00:00
Asim Aslam
1d311ab457
Embedded NATS Broker ( #1110 )
...
* if the address is produced by a default route don't hash it
* embedded nats
* fix url parsing
* don't override help
* add ready flag
2020-01-14 13:23:16 +00:00
Asim Aslam
b699d969e4
if the address is produced by a default route don't hash it ( #1108 )
2020-01-14 11:20:13 +00:00
Milos Gajdos
994d371ff1
Removed redundant comments. Add proper PruneStalePeers test.
2020-01-14 10:49:34 +00:00
Milos Gajdos
a91dad04ee
Increment node error count and prune when Max limit is hit
2020-01-13 22:22:12 +00:00
Milos Gajdos
b4261e8cf9
Updated log and comments
2020-01-13 20:14:30 +00:00
Milos Gajdos
efcac3d009
Define tunnel errors
2020-01-13 20:14:30 +00:00
Milos Gajdos
770c7686ba
Fix nasty bug when graph action may not have been executed in some
...
branches
2020-01-13 20:14:30 +00:00
Milos Gajdos
11904e1137
Regular sync with network every 5 minutes. Apply routes before peering.
2020-01-13 20:14:29 +00:00