Browse Source

modules/websocket: b/f defined missing ws_keepalive_mechanism variable

Juha Heinanen 12 years ago
parent
commit
caf4769ec0
2 changed files with 3 additions and 0 deletions
  1. 2 0
      modules/websocket/ws_mod.c
  2. 1 0
      modules/websocket/ws_mod.h

+ 2 - 0
modules/websocket/ws_mod.c

@@ -50,6 +50,8 @@ static void destroy(void);
 
 sl_api_t ws_slb;
 
+int ws_keepalive_mechanism = KEEPALIVE_MECHANISM_PING;
+
 #define DEFAULT_KEEPALIVE_INTERVAL	1
 static int ws_keepalive_interval = DEFAULT_KEEPALIVE_INTERVAL;
 

+ 1 - 0
modules/websocket/ws_mod.h

@@ -37,6 +37,7 @@ enum
 extern sl_api_t ws_slb;
 extern gen_lock_t *ws_stats_lock;
 
+extern int ws_keepalive_mechanism;
 extern int ws_ping_interval;	/* time (in seconds) between sending Pings */
 
 #endif /* _WS_MOD_H */