Queries waiting on a dead Replier
Currently, a Query will wait till timeout for a response, even if the Responder dies before responding. For small timeouts, this is not a major issue, but timeouts can be very long or even infinite.
Had a case where I was infinitely waiting for an Actor to shutdown, but teh Actor hard stopped, and my hung Query never could return.
Idea: watch the validity of the Address queried, and kick out with an error if it dies.
Comments (5)
-
reporter -
reporter Implemented. New Redeem Future method off pallet for now, but used in Query
-
reporter Problem, what if we are waiting for “Shutdown” message, and Address is destroyed just before message sent?
-
reporter Made it so it would wait up to one extra second for a late message. Also made only active on teh new VIM version, to avoid possible problems with old code.
-
reporter - changed status to resolved
- Log in to comment
Idea: Special “Redeem Future” with input for Address