Extend retries to 2000

(which is 20000 seconds after backing off)
This commit is contained in:
Marc Brooks 2025-10-02 12:00:19 -05:00
parent c61ba677e2
commit fe91742c2b
No known key found for this signature in database
GPG Key ID: 583A6AF2D6AE1DC6
2 changed files with 5 additions and 3 deletions

4
ota.go
View File

@ -261,7 +261,9 @@ func verifyFile(path string, expectedHash string, verifyProgress *float32, scope
}
// close the file so we can rename below
fileToHash.Close()
if err := fileToHash.Close(); err != nil {
return fmt.Errorf("error closing file: %w", err)
}
hashSum := hex.EncodeToString(hash.Sum(nil))
scopedLogger.Info().Str("path", path).Str("hash", hashSum).Msg("SHA256 hash of")

View File

@ -218,7 +218,7 @@ export default function KvmIdRoute() {
const ignoreOffer = useRef(false);
const isSettingRemoteAnswerPending = useRef(false);
const makingOffer = useRef(false);
const reconnectAttemptsRef = useRef(20);
const reconnectAttemptsRef = useRef(2000);
const wsProtocol = window.location.protocol === "https:" ? "wss:" : "ws:";
@ -589,7 +589,7 @@ export default function KvmIdRoute() {
api.POST(`${CLOUD_API}/webrtc/turn_activity`, {
bytesReceived: bytesReceivedDelta,
bytesSent: bytesSentDelta,
}).catch(()=>{
}).catch(() => {
// we don't care about errors here, but we don't want unhandled promise rejections
});
}, 10000);