chore: SecureSocket remove unused MAX_ERROR_SIZE define , rename MAX_INPUT_BUFFER_SIZE static to confirm to naming convention
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user