aboutsummaryrefslogtreecommitdiff
path: root/websocket.c
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2024-02-27 22:56:19 +0100
committercbdev <cb@cbcdn.com>2024-02-27 22:56:19 +0100
commitc4d1da757fc32e8d05e592f3b60484e2bfbf8d67 (patch)
tree399ae1be7b850e43268a3175ad883e94c2cd3dee /websocket.c
parentd80b85d2b61225a27fa7b2058f60831d4a73110f (diff)
downloadwebsocksy-master.tar.gz
websocksy-master.tar.bz2
websocksy-master.zip
Remove debug outputHEADmaster
Diffstat (limited to 'websocket.c')
-rw-r--r--websocket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/websocket.c b/websocket.c
index f3c2631..b720aca 100644
--- a/websocket.c
+++ b/websocket.c
@@ -383,7 +383,7 @@ static size_t ws_frame(websocket* ws){
case ws_frame_binary:
//forward to peer
if(ws->peer_fd >= 0){
- fprintf(stderr, "WS -> Peer %lu bytes\n", payload_length);
+ //fprintf(stderr, "WS -> Peer %lu bytes\n", payload_length);
if(network_send(ws->peer_fd, payload, payload_length)){
ws_close(ws, ws_close_unexpected, "Failed to forward");
}
@@ -412,7 +412,7 @@ static size_t ws_frame(websocket* ws){
/* Construct and send a WebSocket frame */
int ws_send_frame(websocket* ws, ws_operation opcode, uint8_t* data, size_t len){
- fprintf(stderr, "Peer -> WS %lu bytes (%02X)\n", len, opcode);
+ //fprintf(stderr, "Peer -> WS %lu bytes (%02X)\n", len, opcode);
uint8_t frame_header[WS_FRAME_HEADER_LEN];
size_t header_bytes = 2;
uint16_t* payload_len16 = (uint16_t*) (frame_header + 2);