mirror of https://github.com/jetkvm/kvm.git
Extend retries to 2000
(which is 20000 seconds after backing off)
This commit is contained in:
parent
c61ba677e2
commit
fe91742c2b
4
ota.go
4
ota.go
|
|
@ -261,7 +261,9 @@ func verifyFile(path string, expectedHash string, verifyProgress *float32, scope
|
||||||
}
|
}
|
||||||
|
|
||||||
// close the file so we can rename below
|
// 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))
|
hashSum := hex.EncodeToString(hash.Sum(nil))
|
||||||
scopedLogger.Info().Str("path", path).Str("hash", hashSum).Msg("SHA256 hash of")
|
scopedLogger.Info().Str("path", path).Str("hash", hashSum).Msg("SHA256 hash of")
|
||||||
|
|
|
||||||
|
|
@ -218,7 +218,7 @@ export default function KvmIdRoute() {
|
||||||
const ignoreOffer = useRef(false);
|
const ignoreOffer = useRef(false);
|
||||||
const isSettingRemoteAnswerPending = useRef(false);
|
const isSettingRemoteAnswerPending = useRef(false);
|
||||||
const makingOffer = useRef(false);
|
const makingOffer = useRef(false);
|
||||||
const reconnectAttemptsRef = useRef(20);
|
const reconnectAttemptsRef = useRef(2000);
|
||||||
|
|
||||||
const wsProtocol = window.location.protocol === "https:" ? "wss:" : "ws:";
|
const wsProtocol = window.location.protocol === "https:" ? "wss:" : "ws:";
|
||||||
|
|
||||||
|
|
@ -589,7 +589,7 @@ export default function KvmIdRoute() {
|
||||||
api.POST(`${CLOUD_API}/webrtc/turn_activity`, {
|
api.POST(`${CLOUD_API}/webrtc/turn_activity`, {
|
||||||
bytesReceived: bytesReceivedDelta,
|
bytesReceived: bytesReceivedDelta,
|
||||||
bytesSent: bytesSentDelta,
|
bytesSent: bytesSentDelta,
|
||||||
}).catch(()=>{
|
}).catch(() => {
|
||||||
// we don't care about errors here, but we don't want unhandled promise rejections
|
// we don't care about errors here, but we don't want unhandled promise rejections
|
||||||
});
|
});
|
||||||
}, 10000);
|
}, 10000);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue