3.6.11 extend health time to decrease server presure

master
IoTcat 2 years ago
parent ae61165c69
commit 10faa74d9c
  1. 4
      src/ushio-footer.js
  2. 2
      src/ushio-head.js
  3. 4
      test/test.html

@ -972,11 +972,11 @@ setInterval(()=>{
}
if(!page.window) return;
if(page.LastWindowOpenTime > new Date().valueOf() - 10000) SessionLastCntTime = page.LastWindowOpenTime;
if(new Date().valueOf() - SessionLastCntTime > 10000){
if(new Date().valueOf() - SessionLastCntTime > 40000){
console.log('Session unhealthy!!');
session_ajax_ini(session_errCnt++ % 2);
}
if(!session_ignore && new Date().valueOf() - SessionLastCntTime > 15000){
if(!session_ignore && new Date().valueOf() - SessionLastCntTime > 70000){
tips.question({
timeout: 9999999,
title: 'Warning',

@ -39,7 +39,7 @@ if(typeof block_tips == "undefined"){
/* global default page config */
var page = {
version: 'v3.6.10',
version: 'v3.6.11',
url: window.location.href,
title: 'Lovely Ushio',
icon: 'https://cdn.yimian.xyz/img/head/head3r.ico',

@ -1,13 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">var aplayer_playlist = 3066230257 </script>
<script type="text/javascript">WebSocket = undefined;var aplayer_playlist = 3066230257 </script>
<script type="text/javascript">allow_no_cookie = true;delete WebSocket;
</script>
<script type="text/javascript">lang = ['en', 'zh']</script>
<script src="../src/ushio-head.js" charset="utf-8"></script>
<script type="text/javascript">
page.auth = ['tel'];
//page.auth = ['tel'];
</script>

Loading…
Cancel
Save