Watch
1
0
Fork
You've already forked mautrix-signal
0
mirror of https://github.com/mautrix/signal.git synced 2026-08-22 12:04:54 -04:00

Compare commits

..
Author SHA1 Message Date
Nick Mills-Barrett
782cb6c871
signalmeow/web: reset request time when retrying requests
When a websocket stops responding, the pending request is retried after the
connection is torn down, but it kept the original request time and was
therefore rejected as too old by the new connection's write loop.

Stamp each attempt with its own request time.
2026-08-19 17:03:36 +01:00

View file

@ -657,7 +657,7 @@ func (s *SignalWebsocket) sendRequestInternal(
}
}
zerolog.Ctx(ctx).Warn().Int("retry_count", retryCount).Msg("Received nil response, retrying recursively")
return s.sendRequestInternal(ctx, request, startTime, retryCount+1)
return s.sendRequestInternal(ctx, request, time.Now(), retryCount+1)
}
return response, nil
}