Closed mixmasala closed 1 year ago
A reply was expected within ~200ms, but arrived 478ms too late.
12:09:23.326 DEBU provider2_client: doSend setting ReplyETA to 196ms
12:09:24.992 ERRO katzensocks_client: Failed to topup session [28 49 213 191 75 4 237 86 45 198 251 125 119 213 252 10 248 179 177 213 68 118 171 47 137 229 75 253 159 228 4 138]: failure waiting for reply, timeout reached
12:09:25.470 DEBU minclient/conn:79b71d690a2ffb37144e00cdfcc6417658b659f25b680e37fab7ab7fc83ef542@provider2: Received MessageACK: 6
12:09:25.470 INFO provider2_client: OnACK with SURBID [feab3f4860231a52a8872ca494c36c7c]
The issue is that client.BlockingSendUnreliableMessage presumes when a timeout should occur, but the server-side responder needs to send a message to the cashu mint service, and wait for the response.
The fix is to modify the API so that it accepts a context.Context which the caller can use to decide when to timeout.