[sr-dev] git:5.2:b3567878: websocket: put the ws connection after keepalive

Daniel-Constantin Mierla miconda at gmail.com
Thu Jan 31 09:32:50 CET 2019


Module: kamailio
Branch: 5.2
Commit: b3567878dd8b43f22bd7ce88db7611cf6ca029ff
URL: https://github.com/kamailio/kamailio/commit/b3567878dd8b43f22bd7ce88db7611cf6ca029ff

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-01-31T09:32:12+01:00

websocket: put the ws connection after keepalive

- c&p error of last commits resulted in doing get op instead

(cherry picked from commit a975bca1702ea2f3db47f834f7e4da2786ced201)

---

Modified: src/modules/websocket/ws_frame.c

---

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

---

diff --git a/src/modules/websocket/ws_frame.c b/src/modules/websocket/ws_frame.c
index 94004cb2f2..840125a041 100644
--- a/src/modules/websocket/ws_frame.c
+++ b/src/modules/websocket/ws_frame.c
@@ -820,7 +820,7 @@ void ws_keepalive(unsigned int ticks, void *param)
 			}
 		}
 		if(wsc) {
-			wsconn_get(list_head[i].id);
+			wsconn_put_id(list_head[i].id);
 		}
 		i++;
 




More information about the sr-dev mailing list