chore: SecureSocket remove unused MAX_ERROR_SIZE define , rename MAX_INPUT_BUFFER_SIZE static to confirm to naming convention

This commit is contained in:
sithlord48 2025-07-03 12:36:52 -04:00 committed by Nick Bolton
parent 8ec40dd74b
commit 0100cb796e
2 changed files with 4 additions and 7 deletions

View file

@ -31,10 +31,7 @@
// //
// SecureSocket // SecureSocket
// //
static const std::size_t s_maxInputBufferSize = 1024 * 1024;
#define MAX_ERROR_SIZE 65535
static const std::size_t MAX_INPUT_BUFFER_SIZE = 1024 * 1024;
static const float s_retryDelay = 0.01f; static const float s_retryDelay = 0.01f;
@ -142,7 +139,7 @@ TCPSocket::EJobResult SecureSocket::doRead()
do { do {
m_inputBuffer.write(buffer, bytesRead); m_inputBuffer.write(buffer, bytesRead);
if (m_inputBuffer.getSize() > MAX_INPUT_BUFFER_SIZE) { if (m_inputBuffer.getSize() > s_maxInputBufferSize) {
break; break;
} }

View file

@ -21,7 +21,7 @@
#include <cstring> #include <cstring>
#include <memory> #include <memory>
static const std::size_t MAX_INPUT_BUFFER_SIZE = 1024 * 1024; static const std::size_t s_maxInputBufferSize = 1024 * 1024;
// //
// TCPSocket // TCPSocket
@ -311,7 +311,7 @@ TCPSocket::EJobResult TCPSocket::doRead()
do { do {
m_inputBuffer.write(buffer, static_cast<uint32_t>(bytesRead)); m_inputBuffer.write(buffer, static_cast<uint32_t>(bytesRead));
if (m_inputBuffer.getSize() > MAX_INPUT_BUFFER_SIZE) { if (m_inputBuffer.getSize() > s_maxInputBufferSize) {
break; break;
} }