Skip to content

Commit

Permalink
ames: always ack recork pleas
Browse files Browse the repository at this point in the history
  • Loading branch information
yosoyubik committed Mar 1, 2023
1 parent e4f5a92 commit 233d957
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/arvo/sys/vane/ames.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -3007,7 +3007,12 @@
++ run-message-sink
|= [=bone task=message-sink-task]
^+ peer-core
?: (~(has in corked.peer-state) bone) peer-core
:: if we have corked this flow and it's
:: a plea request, ack unconditionally
::
?: &(=(1 (end 0 bone)) (~(has in corked.peer-state) bone))
?> ?=(%hear -.task)
(send-shut-packet bone message-num.shut-packet.task %| %| ok=& lag=*@dr)
:: pass .task to the |message-sink and apply state mutations
::
=/ =message-sink-state
Expand Down

0 comments on commit 233d957

Please sign in to comment.