[sr-dev] git:pd/websocket: modules/websocket: Fixes to WS and WSS message sending

Peter Dunkley peter.dunkley at crocodile-rcs.com
Wed Jul 4 17:16:23 CEST 2012


Module: sip-router
Branch: pd/websocket
Commit: 86362e52c17858bfb81bda33cc6ae46e0f75517f
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=86362e52c17858bfb81bda33cc6ae46e0f75517f

Author: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Date:   Wed Jul  4 16:15:29 2012 +0100

modules/websocket: Fixes to WS and WSS message sending

---

 modules/websocket/ws_frame.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/websocket/ws_frame.c b/modules/websocket/ws_frame.c
index 31754a5..a9b10f6 100644
--- a/modules/websocket/ws_frame.c
+++ b/modules/websocket/ws_frame.c
@@ -231,7 +231,7 @@ static int encode_and_send_ws_frame(ws_frame_t *frame, conn_close_t conn_close)
 		}
 	}
 
-	if (dst.proto == PROTO_TCP)
+	if (dst.proto == PROTO_WS)
 	{
 		if (unlikely(tcp_disable))
 		{
@@ -241,7 +241,7 @@ static int encode_and_send_ws_frame(ws_frame_t *frame, conn_close_t conn_close)
 		}		
 	}
 #ifdef USE_TLS
-	else if (dst.proto == PROTO_TLS)
+	else if (dst.proto == PROTO_WSS)
 	{
 		if (unlikely(tls_disable))
 		{




More information about the sr-dev mailing list