Skip to content

Commit

Permalink
increased timrout allowance
Browse files Browse the repository at this point in the history
  • Loading branch information
flouc001 committed Jan 25, 2017
1 parent 69087b8 commit cd41145
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down Expand Up @@ -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:'')
Expand All @@ -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
}
Expand Down

0 comments on commit cd41145

Please sign in to comment.