Repository: incubator-zeppelin
Updated Branches:
  refs/heads/master 78c221924 -> a9d686b40


Lowering to ping timeout to have better keep-alive

By default a lot of systems(nginx, apache) use 60 seconds as a keep-alive 
timeout value. This will disconnect the websocket when you don't do anything 
for that time, but the PING / PONG message can prevent this by sending a ping 
every 10 seconds instead of 60.

Author: Sjoerd Mulder <[email protected]>

Closes #272 from sjoerdmulder/patch-1 and squashes the following commits:

82b9c9d [Sjoerd Mulder] Lowering to ping timeout to have better keep-alive


Project: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/commit/a9d686b4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/tree/a9d686b4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/diff/a9d686b4

Branch: refs/heads/master
Commit: a9d686b40f0a5a37cdc775403866f711df70cf56
Parents: 78c2219
Author: Sjoerd Mulder <[email protected]>
Authored: Wed Sep 2 10:37:22 2015 +0200
Committer: Alexander Bezzubov <[email protected]>
Committed: Tue Sep 8 12:17:48 2015 +0900

----------------------------------------------------------------------
 .../src/components/websocketEvents/websocketEvents.factory.js      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/blob/a9d686b4/zeppelin-web/src/components/websocketEvents/websocketEvents.factory.js
----------------------------------------------------------------------
diff --git 
a/zeppelin-web/src/components/websocketEvents/websocketEvents.factory.js 
b/zeppelin-web/src/components/websocketEvents/websocketEvents.factory.js
index b490f7d..dad2cb5 100644
--- a/zeppelin-web/src/components/websocketEvents/websocketEvents.factory.js
+++ b/zeppelin-web/src/components/websocketEvents/websocketEvents.factory.js
@@ -24,7 +24,7 @@ angular.module('zeppelinWebApp').factory('websocketEvents', 
function($rootScope,
     $rootScope.$broadcast('setConnectedStatus', true);
     setInterval(function(){
       websocketCalls.sendNewEvent({op: 'PING'});
-    }, 60000);
+    }, 10000);
   });
 
   websocketCalls.sendNewEvent = function(data) {

Reply via email to