[sr-dev] git:5.5:88b50be1: websockets: enable KEEPALIVE_MECHANISM_CONCHECK

Daniel-Constantin Mierla miconda at gmail.com
Thu Dec 16 09:28:05 CET 2021


Module: kamailio
Branch: 5.5
Commit: 88b50be127ca0dab57784e0ffb96d6eb44196772
URL: https://github.com/kamailio/kamailio/commit/88b50be127ca0dab57784e0ffb96d6eb44196772

Author: lazedo <luis.azedo at factorlusitano.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-12-16T08:28:55+01:00

websockets: enable KEEPALIVE_MECHANISM_CONCHECK

KEEPALIVE_MECHANISM_CONCHECK was added but can't be enabled

(cherry picked from commit 29c3b865d8efde8435c2217df44d1df684caaea2)

---

Modified: src/modules/websocket/websocket.c

---

Diff:  https://github.com/kamailio/kamailio/commit/88b50be127ca0dab57784e0ffb96d6eb44196772.diff
Patch: https://github.com/kamailio/kamailio/commit/88b50be127ca0dab57784e0ffb96d6eb44196772.patch

---

diff --git a/src/modules/websocket/websocket.c b/src/modules/websocket/websocket.c
index 5cef5d6b1a..f7273048e3 100644
--- a/src/modules/websocket/websocket.c
+++ b/src/modules/websocket/websocket.c
@@ -221,6 +221,7 @@ static int mod_init(void)
 		switch(ws_keepalive_mechanism) {
 			case KEEPALIVE_MECHANISM_PING:
 			case KEEPALIVE_MECHANISM_PONG:
+			case KEEPALIVE_MECHANISM_CONCHECK:
 				break;
 			default:
 				ws_keepalive_mechanism = DEFAULT_KEEPALIVE_MECHANISM;




More information about the sr-dev mailing list