mirror of
https://github.com/urbit/shrub.git
synced 2024-12-18 15:55:00 +03:00
Merge pull request #5951 from urbit/pkova/dns-race
dns-address: subscribe before poke and fix wire mismatch
This commit is contained in:
commit
50ee2eb1c0
@ -30,12 +30,12 @@
|
|||||||
?. good
|
?. good
|
||||||
%+ strand-fail:strandio %bail-early-self-check
|
%+ strand-fail:strandio %bail-early-self-check
|
||||||
[>"couldn't access ship on port 80"< ~]
|
[>"couldn't access ship on port 80"< ~]
|
||||||
|
;< our=@p bind:m get-our:strandio
|
||||||
|
;< ~ bind:m (watch:strandio /response collector-app /(scot %p our))
|
||||||
;< ~ bind:m (poke:strandio collector-app %dns-address !>([%if if]))
|
;< ~ bind:m (poke:strandio collector-app %dns-address !>([%if if]))
|
||||||
=/ msg=cord
|
=/ msg=cord
|
||||||
(cat 3 'request for DNS sent to ' (scot %p p:collector-app))
|
(cat 3 'request for DNS sent to ' (scot %p p:collector-app))
|
||||||
;< ~ bind:m (app-message:strandio %dns msg ~)
|
;< ~ bind:m (app-message:strandio %dns msg ~)
|
||||||
;< our=@p bind:m get-our:strandio
|
|
||||||
;< ~ bind:m (watch:strandio /sub collector-app /(scot %p our))
|
|
||||||
=/ msg=cord
|
=/ msg=cord
|
||||||
(cat 3 'awaiting response from ' (scot %p p:collector-app))
|
(cat 3 'awaiting response from ' (scot %p p:collector-app))
|
||||||
;< ~ bind:m (app-message:strandio %dns msg ~)
|
;< ~ bind:m (app-message:strandio %dns msg ~)
|
||||||
@ -45,7 +45,7 @@
|
|||||||
=/ m (strand ,~)
|
=/ m (strand ,~)
|
||||||
^- form:m
|
^- form:m
|
||||||
;< our=ship bind:m get-our:strandio
|
;< our=ship bind:m get-our:strandio
|
||||||
;< =cage bind:m (take-fact:strandio /(scot %p our))
|
;< =cage bind:m (take-fact:strandio /response)
|
||||||
?> ?=(%dns-binding p.cage)
|
?> ?=(%dns-binding p.cage)
|
||||||
=/ =binding:dns !<(binding:dns q.cage)
|
=/ =binding:dns !<(binding:dns q.cage)
|
||||||
;< good=? bind:m (turf-confirm-install:libdns turf.binding)
|
;< good=? bind:m (turf-confirm-install:libdns turf.binding)
|
||||||
|
Loading…
Reference in New Issue
Block a user