Joe Bryan
817125ba51
ames: fix up merge resolutions (compiles!)
2023-03-21 13:38:59 -04:00
yosoyubik
dd0f35c8ad
Merge branch 'm/contdist-and-behn' into i/5788/remote-scry
2023-03-21 18:01:17 +01:00
yosoyubik
e4182f52a9
ames: make +abet pure
2023-03-20 09:19:27 +01:00
yosoyubik
1144fb3f28
ames: use the %rcv flag when hearing a packet
2023-03-18 19:16:10 +01:00
yosoyubik
d645fcc862
ames: always ack %hear tasks on corked bones
2023-03-18 19:06:16 +01:00
yosoyubik
80914289b2
ames: fix %snub queued evet update
2023-03-17 18:51:27 +01:00
yosoyubik
003613d1d5
Merge branch 'develop' into yu/ames-snub-whitelist
2023-03-17 14:05:38 +01:00
Josh Lehman
dbe6f7fd20
Merge branch 'develop' into i/6264/ames-snub-whitelist
2023-03-16 08:30:57 -07:00
yosoyubik
3654431f3a
ames: sanity check abetting the sink core
2023-03-15 10:35:08 +01:00
yosoyubik
943690f8ee
ames: remove unused %krocs and %corks logic
...
%krocs is still in peer-state, in lull.hoon and can be removed
next time ames-state is updated, same as for %corks (only in ames-state)
2023-03-12 13:47:40 +01:00
yosoyubik
86bad20baf
ames: no-op if bone has been corked on the sender
2023-03-12 10:05:33 +01:00
yosoyubik
c1974b30b2
ames: clean up clogged conditional
2023-03-12 09:59:11 +01:00
yosoyubik
34f9a49b73
ames: log pleas for corked bones
2023-03-12 09:45:33 +01:00
yosoyubik
707cbd63ab
ames: always ack recork pleas
2023-03-12 09:36:51 +01:00
yosoyubik
f58fcfd41d
ames: no-op if bone has been corked on the sender
2023-03-12 08:47:44 +01:00
Josh Lehman
3177067d96
Merge branch 'develop' into i/6264/ames-snub-whitelist
2023-03-03 09:54:35 -08:00
Marcus
3b91a3f0be
ames: snubbed scry and whitelist
2023-03-02 18:21:36 -03:00
yosoyubik
219dea855d
ames: log pleas for corked bones
2023-03-01 19:34:41 -06:00
yosoyubik
233d957a5c
ames: always ack recork pleas
2023-03-01 15:55:46 -06:00
yosoyubik
dec8252d4a
Merge branch 'develop' into i/6103/ames-refactor
2023-02-23 13:51:35 +01:00
yosoyubik
cecd7b4835
ames: remove unused pump/sink/pack gifts
2023-02-23 13:39:41 +01:00
yosoyubik
3963b0a951
ames: fix test-nack
...
previously we were acking the nack-trace message (adding a %send move)
before notifying the message-pump with a %near task. Now, due to the
refactoring we invert the order of those moves. This seems safe but will
determine with livenet testing
2023-02-22 14:45:44 +01:00
yosoyubik
458b40318d
ames: remove unused message pump timer relay
2023-02-22 11:06:09 +01:00
yosoyubik
8d9e9c20f5
ames: refactor message-sink
2023-02-22 10:50:20 +01:00
yosoyubik
9c8080cb0b
ames: move peer-state lookups to helper chapter
2023-02-22 09:11:22 +01:00
yosoyubik
eaae5b1161
ames: nest pump-gauge in packet-pump
2023-02-22 09:06:05 +01:00
yosoyubik
91be2b8bf1
ames: refactor message and packet pumps
2023-02-22 08:50:55 +01:00
yosoyubik
f508a569f8
ames: add core chapters to peer-core
2023-02-21 13:38:03 +01:00
yosoyubik
6d6f1b956f
ames: add core chapters to +ev
2023-02-21 12:56:50 +01:00
yosoyubik
f310b5cb3a
ames: rename make-peer-core -> pe
2023-02-21 12:46:20 +01:00
yosoyubik
07af14ecc3
ames: rename per-event -> ev
2023-02-21 12:32:33 +01:00
yosoyubik
311fa0efbb
ames: move formal interface core to the bottom
2023-02-21 12:22:53 +01:00
dachus
6f5f4e2100
done
2023-02-17 14:02:11 -06:00
yosoyubik
c503647eb3
ames: no-op on %kroc task
2023-02-14 06:07:59 +01:00
yosoyubik
25dc16addb
Merge branch 'develop' into i/6065/clean-flows
2023-02-14 05:02:40 +01:00
yosoyubik
b8b7e1951f
ames: add %cong task to adjust clog
2023-02-13 12:04:41 +01:00
yosoyubik
c92c2c9279
ames: log stale flows in closing state
2023-02-10 16:19:18 +01:00
yosoyubik
abbd95f2ce
ames: fix typo
2023-02-09 13:12:50 +01:00
yosoyubik
dd812283ac
ames: optimize memory measurement
...
Co-authored-by: Joe Bryan <joemfb@gmail.com>
2023-02-09 10:47:49 +01:00
yosoyubik
4bac6ea642
Merge branch 'develop' into ted/ames-clog-less
2023-02-09 10:14:02 +01:00
yosoyubik
46c27d33cd
ames: fix check for stale resubscriptions
2023-02-06 16:48:32 +01:00
yosoyubik
fbb95b0d9f
ames: check if we have a flow for a nax ack bone
2023-02-06 16:39:00 +01:00
yosoyubik
1522e4ab96
ames: don't scry dudes for every peer
2023-02-06 16:39:00 +01:00
yosoyubik
108e0cd023
ames: fix syntax error
2023-02-06 16:39:00 +01:00
yosoyubik
5f9d6b23d1
ames: improve logging in dry mode for on-kroc
2023-02-06 16:39:00 +01:00
yosoyubik
24140d5f12
ames: clarify forward/backward bones
2023-02-06 16:38:59 +01:00
yosoyubik
e32c18b677
ames: style fixes and comments
2023-02-06 16:38:59 +01:00
yosoyubik
1d8214530a
ames: fix |close-flows generator
2023-02-06 16:38:50 +01:00
yosoyubik
1e04e9498e
ames: clean all stale %watches in on-kroc
...
This removes the logic from cleaning up stale subscriptions in %gall,
leaving +ap-rake as it was, and moves it to the +on-kroc arm in %ames.
Failed subscriptions from nacking a %watch plea that were
not properly corked (fixed in https://github.com/urbit/urbit/pull/6102 )
are a subset of the more general "stale re-subscription" issue, so
we take care of all stale flows at the same time, by focusing on the
current subscription—leaving all others to be corked automatically—and
checking if it received a nack, to subsequently cork it.
2023-02-06 16:38:04 +01:00
yosoyubik
ad712caccf
ames, gall: move |close-flows logic to vanes
...
This modifies the %rake task in %gall, to select what kind of
subscriptions we try to close:
=mode %o: kill old pre-nonce subscriptions
=mode %z: kill old pre-nonce subscriptions, including sub-nonce = 0
=mode %r: kills all stale resubscription flows
It also adds a dry-run option to both tasks (%kroc in ames, %rake in gall)
2023-02-06 16:36:32 +01:00
yosoyubik
7d4959db2e
ames: don't send %kroc cards in |close-flows
2023-02-06 16:36:30 +01:00
yosoyubik
7c26716bab
ames: remove stale comment
2023-02-06 16:36:29 +01:00
yosoyubik
05582d12c2
ames: refactor +on-krock
2023-02-06 16:36:28 +01:00
yosoyubik
3a7bd3a67f
ames: add tool for removing failed %watch flows
2023-02-06 16:36:27 +01:00
Philip Monk
8609599035
ames: put "is ok"/"not responding" behind |ames-verb
...
Fixes #6245
2023-01-24 13:07:19 -07:00
Philip Monk
77616520c3
ames: add logging for snubbing
2023-01-17 15:16:35 -07:00
Zach Alberico
34e8ff7616
Merge branch 'next/arvo' into ted/ames-clog-less
2022-12-15 19:17:45 -08:00
Zach Alberico
a2173f1eb3
Merge branch 'next/arvo' into lf/ames-snub
2022-12-15 17:40:04 -08:00
Liam Fitzgerald
14baf6f3d6
ames: add %snub functionality
...
Adds .snub to ames-state, a global blocklist for ships. If a packet is
received from a ship that is in the .snub set, it is immediately
dropped. Adds %snub to ames' $task, to allow manipulating this list
2022-12-15 13:37:14 -06:00
Ted Blackman
35194a6a08
Merge pull request #6102 from urbit/yu/kill-nack-flows
...
ames, gall: send a %cork if getting a %nack for a %watch
2022-11-28 11:57:07 -06:00
Ted Blackman
da4046a859
Merge pull request #6076 from urbit/yu/remove-num-live
...
ames: remove num-live from pump-metrics
2022-11-28 11:50:01 -06:00
yosoyubik
a7eee8ae6b
Merge branch 'next/arvo' into yu/kill-nack-flows
2022-11-28 17:22:15 +01:00
yosoyubik
403b3eef82
ames, gall: address feedback
2022-11-28 17:21:41 +01:00
fang
3ef5260efc
Merge branch 'next/arvo' into pkova/ruin-comets
2022-11-25 12:20:46 +01:00
Ted Blackman
fc32dde010
Merge pull request #6059 from urbit/ames-verb-fixes
...
ames: debug print msg formatting fixes
2022-11-23 17:23:16 -06:00
Philip Monk
15c5447a05
Merge branch 'philip/agent-clay' into next/arvo
2022-11-22 17:24:15 -07:00
yosoyubik
430233a3de
ames, gall: cork flow if getting %nack for %watch
2022-11-21 14:23:19 +01:00
yosoyubik
012c1e19bf
ames: don't use num-live from pump-metrics
2022-11-17 08:38:50 -08:00
yosoyubik
8bb969c2ec
Revert "ames: remove num-live from pump-metrics"
...
This reverts commit b2a0f2fd304f961e4db89499aedefe0be95e6239.
2022-11-17 08:38:50 -08:00
yosoyubik
a3e8607cb1
ames: remove num-live from pump-metrics
2022-11-17 08:38:50 -08:00
yosoyubik
4b0c1fab3b
ames: count in flight packets in packet pump
...
num-live is still used—the state update will be addressed later, as well as the update in %lull
2022-11-17 08:38:50 -08:00
fang
2027907db5
Merge branch 'master' into next/arvo
2022-11-16 16:11:53 +01:00
yosoyubik
3b5110ed1d
ames: enqueue %cork in alien-agenda
2022-11-09 16:05:45 +01:00
Tinnus Napbus
d3c2c734e3
ames: debug print msg formatting fixes
...
- fix `fragment-num` and `num-fragments` having duplicate faces
- fix faces being wrapped around wrong things in various places
- fix `bone` not being printed in "hear last in-progess" message
- make pretty tape interpolation style more uniform
2022-11-07 21:46:15 +13:00
Liam Fitzgerald
26aac7581a
ames: prevent crashes when corking an alien flow
...
The +on-cork handler asserts that the peer is known to us. This is the
incorrect behaviour, because it will crash when corking a flow to a peer
that is still an %alien. This can happen, for instance, when making a
gall subscription for the first time and then corking it before the
alien naturalises.
2022-11-01 15:50:10 +10:00
pkova
708c95b6b2
ames: correct %ruin comet logic
2022-10-17 23:05:49 +03:00
Philip Monk
846dda88b4
Merge remote-tracking branch 'origin/m/ames-no-stale-forwards' into philip/agent-clay
2022-10-13 21:42:58 -07:00
pkova
1d73558163
ames: ruin comets not seen for six months
2022-10-03 17:03:49 +03:00
Joe Bryan
9df08c5e72
ames: ignore pki nponsorship loss
2022-09-22 10:38:39 -04:00
fang
f46d8dd557
Merge pull request #5974 from urbit/m/recork-slower
...
ames: bump recork timer back up to a day
2022-09-06 22:18:14 +02:00
fang
7a4034f48a
Merge pull request #5977 from urbit/m/cork-undone
...
ames, gall: no %done on corks
2022-09-06 22:17:34 +02:00
fang
9c931f844b
Merge pull request #5976 from urbit/m/ames-restir
...
ames: clean & re-set recork timer during %stir
2022-09-06 22:17:18 +02:00
fang
36dd2f8ace
Merge branch 'next/arvo' into m/recork-slower
2022-09-06 22:16:41 +02:00
fang
fec3c45d30
Merge pull request #5971 from urbit/jb/recork-error
...
ames: handle failed recork timers
2022-09-06 22:15:12 +02:00
fang
0e5b3b4107
ames: don't give %done on cork
...
Locally, %cork is guaranteed to succeed instantly. The requesting vane
doesn't need an ack to safely consider the flow "closed".
2022-08-25 18:13:29 +02:00
fang
81462da7aa
ames: clean & re-set recork timer during %stir
...
Pre-release ships may have multiple recork timers. This ensures that,
after stir, we always have exactly one.
2022-08-25 14:42:16 +02:00
fang
0871c24e24
ames: bump recork timer back up to a day
...
We had lowered this initially for easier testing, but a day should be
sufficient for real-world use.
2022-08-25 14:11:45 +02:00
fang
b2422030f7
ames: correctly identify stale routes
2022-08-25 13:41:55 +02:00
Joe Bryan
76cc8939d3
ames: fix error slog on failed attestation timer
2022-08-23 14:34:08 -04:00
Joe Bryan
5b8f26558e
ames: handle failed recork timers
2022-08-23 14:33:53 -04:00
Joe Bryan
679b38138d
ames: prevent larval stage from possibly clobbering adult state
2022-08-23 10:37:01 -04:00
Ted Blackman
5a96f3bdbe
ames: drop %hear as larva; check duct before metamorpohse
2022-08-23 16:45:17 +03:00
Ted Blackman
07601c6bee
ames: metamorphose on first +take if possible
2022-08-23 16:09:35 +03:00
Ted Blackman
9abe49489d
ames: +on-stir clean up comments
2022-08-23 13:31:10 +03:00
Joe Bryan
9439841ce8
ames: refactor %stir, %rest stale/wrong timers
2022-08-22 20:14:02 -04:00
fang
3a7938f057
ames: say "metamorphosis" in all relevant cases
2022-08-20 00:05:20 +02:00
fang
53b0e7ecaa
ames: ensure larva initializes adult's state
...
Previously, when the larva got to processing enqueued events, it was
doing so without loading state into the adult beforehand, resulting in
incorrect processing of events.
Here, we make the larva call +molt more eagerly, ensuring that the adult
always has its state available when we use it.
2022-08-19 23:58:10 +02:00
fang
ce2e433a8a
ames: don't skip closing flows in +on-stir
...
Yes, there is a global timer for closing flows, but all that does is
enqueue a cork message. +on-stir needs to set _pump_ timers for all
flows that might still have messages to send, which includes closing
flows.
2022-08-19 20:26:08 +02:00
Ted Blackman
6b836bb56d
ames: fix no-op for messages on closing bones
2022-08-10 20:18:57 +03:00
Ted Blackman
20ccac22a2
ames: clean up closing bone check and printfs
2022-08-10 19:55:07 +03:00