From cd411455457241aed308fed2ab9cf9328c340535 Mon Sep 17 00:00:00 2001 From: flouc001 Date: Wed, 25 Jan 2017 11:55:58 +0000 Subject: [PATCH] increased timrout allowance --- src/cn.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cn.js b/src/cn.js index 9b9db863..36f0351a 100644 --- a/src/cn.js +++ b/src/cn.js @@ -69,7 +69,7 @@ const rq=node_require,fs=rq('fs'),cp=rq('child_process'),net=rq('net'),os=rq('os }) }) c&&c.on('error',x=>{err(x.message||''+x);q.connecting_dlg.hidden=1;clearTimeout(D.tmr);delete D.tmr}) - D.tmr=setTimeout(function(){err('Timed out');c&&c.end();q.connecting_dlg.hidden=1},3000) + D.tmr=setTimeout(function(){err('Timed out');c&&c.end();q.connecting_dlg.hidden=1},10000) }else{ connect({host:x.host,port:+x.port||4502, ssl:x.ssl,cert:x.cert,key:x.key,subj:x.subj,rootcertsdir:x.rootcertsdir}) @@ -98,7 +98,7 @@ const rq=node_require,fs=rq('fs'),cp=rq('child_process'),net=rq('net'),os=rq('os q.connecting_dlg.hidden=1 }) }).on('error',x=>{err(x.message||''+x);q.connecting_dlg.hidden=1;clearTimeout(D.tmr);delete D.tmr}) - D.tmr=setTimeout(function(){err('Timed out');c&&c.end();q.connecting_dlg.hidden=1},3000) + D.tmr=setTimeout(function(){err('Timed out');c&&c.end();q.connecting_dlg.hidden=1},10000) }else{ srv=net.createServer(y=>{log('spawned interpreter connected');const a=srv.address();srv&&srv.close();srv=0;clt=y initInterpreterConn();new D.IDE().setConnInfo(a.address,a.port,sel?sel.name:'') @@ -121,7 +121,7 @@ const rq=node_require,fs=rq('fs'),cp=rq('child_process'),net=rq('net'),os=rq('os err(y.code==='ENOENT'?"Cannot find the interpreter's executable":''+y) console.error(y)}) }) - D.tmr=setTimeout(function(){err('Timed out');srv&&srv.close();srv=0;child&&child.kill();child=0},3000) + D.tmr=setTimeout(function(){err('Timed out');srv&&srv.close();srv=0;child&&child.kill();child=0},10000) } break }