fix: Remove unnecessary max_frame_size calculation in websocket handling
Some checks failed
C/C++ CI / build (push) Failing after 5m19s
C/C++ CI / test (push) Has been skipped
C/C++ CI / code-quality (push) Failing after 1m10s
C/C++ CI / security-scan (push) Failing after 1m2s
CI Pipeline / build (push) Failing after 56s
CI Pipeline / test (push) Has been skipped
CI Pipeline / security-scan (push) Failing after 50s
CI Pipeline / code-quality (push) Failing after 1m10s
CI Pipeline / docker-build (push) Failing after 3m53s

This commit is contained in:
2025-12-20 22:33:57 +01:00
parent f433ae55e4
commit 8d16e539bb

View File

@@ -287,12 +287,6 @@ int ws_send_frame(ws_connection_t* conn, uint8_t opcode, const uint8_t* payload,
return -1;
}
size_t max_frame_size = 10 + payload_len;
if (max_frame_size > 65536)
{
max_frame_size = 65536;
}
uint8_t buffer[65536];
// Limit payload to avoid overflow (65536 - 10 bytes for max header)