From b8e725c407ce5b0b9580ab0d8bd7a9223b509193 Mon Sep 17 00:00:00 2001 From: Henning Westerholt Date: Sun, 25 Aug 2019 13:27:05 +0200 Subject: [PATCH] websocket: remove core stats.h #include, remove no-op #defines as well --- src/modules/websocket/ws_frame.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/modules/websocket/ws_frame.c b/src/modules/websocket/ws_frame.c index 36b465bc655..2da0863de5f 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);