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

View File

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