Commit Graph

18 Commits

Author SHA1 Message Date
Logan Allen
09a5d7c71d pull-hook: fix +end 2020-12-04 14:31:05 -06:00
Logan Allen
c5a46bc605 pull-hook: fix handle-kick printouts 2020-12-04 14:20:28 -06:00
Liam Fitzgerald
e8ba12c7e3
pull-hook: L review 2020-12-04 11:49:10 +10:00
Liam Fitzgerald
f73a96ba90
pull-hook: backstop crashed kick handler
Virtualises the kick handler for the inner door in lib/pull-hook, so
that crashes in the handler do not cause a dangling resource with no
subscription. Additionally, failed kicks now cause the sync to be
dropped into a failed-kicks map in the state, where we attempt to
recover from the failure in the on-load.
2020-11-26 16:09:14 +10:00
Liam Fitzgerald
f851803d3c
pull-hook: do not crash on dangling sync
If the %kick handler of the inner-core crashes, then we never get to
resubscribe, thus leaving a dangling entry in the state with no
corresponding subscription. Updates the pull-hook-action pokes to not
crash when given a dangling entry.
2020-11-26 15:42:23 +10:00
Liam Fitzgerald
27b5f70b80
pull-hook: fix rewatch wire 2020-11-06 12:08:08 +10:00
Liam Fitzgerald
4fc8560a13
pull-hook: fix rewatching subscriptions 2020-11-06 12:05:51 +10:00
Liam Fitzgerald
10c956fc87
pull-hook: fix base-state-0 type 2020-11-06 12:03:14 +10:00
Liam Fitzgerald
d902aa9629
pull-hook: rewatch missing subscriptions 2020-11-06 11:44:09 +10:00
Matilde Park
c7f8af1fd2 Merge branch 'release/next-userspace' 2020-09-08 20:32:02 -04:00
matildepark
d136c50ccc
Merge pull request #3243 from urbit/lf/lib-hooks-docs
lib-hooks: document with comments
2020-09-05 16:18:17 -04:00
Liam Fitzgerald
003537e80e lib/hooks: remove reference to scrying 2020-09-03 10:13:29 +10:00
Liam Fitzgerald
b81153db03 pull-hook: prevent from subscribing to ourselves 2020-09-02 11:21:14 +10:00
Liam Fitzgerald
f658d99c76 pull-hook: no-op on double add
If we receive an %add poke for a resource we are already pulling, no-op
instead of crashing. This should prevent crashes upon repulling a
resource after a breach of the host.
2020-08-17 12:47:40 +10:00
Liam Fitzgerald
531d53ddfc lib-hooks: address mark review 2020-08-05 13:55:12 +10:00
Liam Fitzgerald
d91de5f276 lib-hooks: document with comments 2020-08-01 11:11:13 +10:00
Liam Fitzgerald
64065d720c groups: refactor ota 2020-07-13 01:44:49 +00:00
Liam Fitzgerald
d66dbff61e groups: migrate to push-pull hooks and resources 2020-06-08 17:53:16 +10:00