瀏覽代碼

modules/websocket: b/f defined missing ws_keepalive_mechanism variable

Juha Heinanen 12 年之前
父節點
當前提交
caf4769ec0
共有 2 個文件被更改,包括 3 次插入0 次删除
  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 */