[sr-dev] git:master:b8e725c4: websocket: remove core stats.h #include, remove no-op #defines as well
Henning Westerholt
hw at skalatan.de
Sun Aug 25 13:28:30 CEST 2019
Module: kamailio
Branch: master
Commit: b8e725c407ce5b0b9580ab0d8bd7a9223b509193
URL: https://github.com/kamailio/kamailio/commit/b8e725c407ce5b0b9580ab0d8bd7a9223b509193
Author: Henning Westerholt <hw at skalatan.de>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2019-08-25T13:27:56+02:00
websocket: remove core stats.h #include, remove no-op #defines as well
---
Modified: src/modules/websocket/ws_frame.c
---
Diff: https://github.com/kamailio/kamailio/commit/b8e725c407ce5b0b9580ab0d8bd7a9223b509193.diff
Patch: https://github.com/kamailio/kamailio/commit/b8e725c407ce5b0b9580ab0d8bd7a9223b509193.patch
---
diff --git a/src/modules/websocket/ws_frame.c b/src/modules/websocket/ws_frame.c
index 36b465bc65..2da0863de5 100644
--- a/src/modules/websocket/ws_frame.c
+++ b/src/modules/websocket/ws_frame.c
@@ -34,7 +34,6 @@
#include "../../core/events.h"
#include "../../core/receive.h"
-#include "../../core/stats.h"
#include "../../core/str.h"
#include "../../core/tcp_conn.h"
#include "../../core/tcp_read.h"
@@ -244,7 +243,6 @@ static int encode_and_send_ws_frame(ws_frame_t *frame, conn_close_t conn_close)
if(dst.proto == PROTO_WS) {
if(unlikely(tcp_disable)) {
- STATS_TX_DROPS;
LM_WARN("TCP disabled\n");
pkg_free(send_buf);
tcpconn_put(con);
@@ -254,7 +252,6 @@ static int encode_and_send_ws_frame(ws_frame_t *frame, conn_close_t conn_close)
#ifdef USE_TLS
else if(dst.proto == PROTO_WSS) {
if(unlikely(tls_disable)) {
- STATS_TX_DROPS;
LM_WARN("TLS disabled\n");
pkg_free(send_buf);
tcpconn_put(con);
@@ -275,7 +272,6 @@ static int encode_and_send_ws_frame(ws_frame_t *frame, conn_close_t conn_close)
dst.send_flags.f |= SND_F_FORCE_CON_REUSE;
if(tcp_send(&dst, from, send_buf, frame_length) < 0) {
- STATS_TX_DROPS;
LM_ERR("sending WebSocket frame\n");
pkg_free(send_buf);
update_stat(ws_failed_connections, 1);
More information about the sr-dev
mailing list