Browse Source

add timeout

master
zeus 3 years ago
parent
commit
49b4bad25c
  1. 2
      dist/index.html
  2. 2
      dist/js/app.0286ab9c.js
  3. 1
      dist/js/app.0286ab9c.js.map
  4. 2
      dist/js/app.5ae7c1ec.js
  5. 1
      dist/js/app.5ae7c1ec.js.map
  6. 16
      src-local/llo/new.js
  7. 1
      src/components/mynetwork/mytable.vue
  8. 49
      src/config/index-web.js
  9. 10
      src/main.js

2
dist/index.html

@ -1 +1 @@
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><link href="/css/app.25658f84.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.5ae7c1ec.js" rel="preload" as="script"><link href="/js/chunk-vendors.d8d18fe6.js" rel="preload" as="script"><link href="/css/chunk-vendors.e469b508.css" rel="stylesheet"><link href="/css/app.25658f84.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.d8d18fe6.js"></script><script src="/js/app.5ae7c1ec.js"></script></body></html>
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><link href="/css/app.25658f84.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.0286ab9c.js" rel="preload" as="script"><link href="/js/chunk-vendors.d8d18fe6.js" rel="preload" as="script"><link href="/css/chunk-vendors.e469b508.css" rel="stylesheet"><link href="/css/app.25658f84.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.d8d18fe6.js"></script><script src="/js/app.0286ab9c.js"></script></body></html>

2
dist/js/app.0286ab9c.js

File diff suppressed because one or more lines are too long

1
dist/js/app.0286ab9c.js.map

File diff suppressed because one or more lines are too long

2
dist/js/app.5ae7c1ec.js

File diff suppressed because one or more lines are too long

1
dist/js/app.5ae7c1ec.js.map

File diff suppressed because one or more lines are too long

16
src-local/llo/new.js

@ -90,10 +90,21 @@ var options = {
var server = https.createServer(options, app);
var io = require('socket.io')(server);
{
upgradeTimeout: 30000 // default value is 10000ms, try changing it to 20k or more
}
socket.on('disconnect', reason => {
console.log(`reason: ${reason}`);
});
*/
var server = http.createServer(app);
const io = require("socket.io")(server, {
reconnectionDelay: 5000,
reconnectionDelayMax: 5000,
pingTimeout: 90000, // default value is 10000ms, try changing it to 20k or more
upgradeTimeout: 50000, // default value is 10000ms, try changing it to 20k or more
cors: {
origin: "http://localhost:8080",
methods: ["GET", "POST"]
@ -2532,6 +2543,11 @@ let child = [];
var ppid = ''
io.on('connection', function(socket) {
console.log('new connection');
socket.on('disconnect', reason => {
console.log(`reason: ${reason}`);
});
socket.on('start', (value) => {
//console.log('start')
//console.log('value '+JSON.stringify(value))

1
src/components/mynetwork/mytable.vue

@ -990,6 +990,7 @@ if(pocurletherpadserver != 'no'){
info +='<p class="text-info">'
info += '<a href="'+pocurletherpadserver+'" target="_blank">Click here to open Web App</a>'
info +='</p>'
info += '<hr>'
}
if(pocurletherpadserverttyd != 'no'){

49
src/config/index-web.js

@ -5,45 +5,72 @@ export const ApiConfigWEB = [
"name": "microservice-etherpad",
"app": true,
"url": 'http',
"port": 0,
"port": '9001/tcp',
"ttyd": false,
"ttydport": 3787,
"ttydport": "3787/tcp",
"ttydurl": 'http'
},
{
"name": "jitsiweb",
"app": true,
"url": 'https',
"port": 0,
"port": "443/tcp",
"ttyd": false,
"ttydport": 3787,
"ttydport": "3787/tcp",
"ttydurl": 'http'
},
{
"name": "microservice-novncfull",
"app": true,
"url": 'http',
"port": 0,
"port": "80/tcp",
"ttyd": false,
"ttydport": 3787,
"ttydport": "3787/tcp",
"ttydurl": 'http'
},
{
"name": "microservice-novnclite",
"app": true,
"url": 'http',
"port": 0,
"port": "80/tcp",
"ttyd": false,
"ttydport": 3787,
"ttydport": "3787/tcp",
"ttydurl": 'http'
},
{
"name": "microservice-mongoexpress",
"app": true,
"url": 'http',
"port": 8081,
"port": "8081/tcp",
"ttyd": true,
"ttydport": 3787,
"ttydport": "3787/tcp",
"ttydurl": 'http'
}
},
{
"name": "microservice-gns3",
"app": true,
"url": 'http',
"port": "8001/tcp",
"ttyd": false,
"ttydport": "3787/tcp",
"ttydurl": 'http'
},
{
"name": "microservice-ubuntu",
"app": false,
"url": 'http',
"port": "8001/tcp",
"ttyd": true,
"ttydport": "3787/tcp",
"ttydurl": 'http'
},
{
"name": "microservice-ubuntugui",
"app": true,
"url": 'http',
"port": "80/tcp",
"ttyd": false,
"ttydport": "3787/tcp",
"ttydurl": 'http'
},
];

10
src/main.js

@ -23,14 +23,20 @@ import { io } from 'socket.io-client';
//const socket = io('https://factory.swarmlab.io:55527', {
//const socket = io('https://localhost:3080', {
//
//allowUpgrades: false
//
//
var socketurl = ApiConfig.url_80;
const socket = io(socketurl, {
autoConnect: false,
reconnection: true,
reconnectionDelay: 3000,
reconnectionDelay: 5000,
reconnectionDelayMax: 5000,
maxReconnectionAttempts: Infinity,
pingInterval: 25000,
pingTimeout: 60000,
pingTimeout: 90000,
timeout: 70000,
transports: [ 'websocket', 'polling' ],
secure: true,
rejectUnauthorized: false

Loading…
Cancel
Save