Fossil SCM
|
1
|
/* This javascript runs on web-pages that need to periodically send |
|
2
|
** a keep-alive HTTP request back to the server. This is typically |
|
3
|
** used with the "fossil ui" command with a --idle-timeout set. The |
|
4
|
** HTTP server will stop if it does not receive a new HTTP request |
|
5
|
** within some time interval (60 seconds). This script keeps sending |
|
6
|
** new HTTP requests every 20 seconds or so to keep the server running |
|
7
|
** while the page is still viewable. |
|
8
|
*/ |
|
9
|
setInterval(function(){fetch('/noop');},15000+10000*Math.random()); |
|
10
|
|