client/Response: add constant MAX_BINARY_SIZE
Use the same chunk size for all binary commands.
This commit is contained in:
@@ -77,6 +77,8 @@ public:
|
||||
bool FormatV(const char *fmt, va_list args) noexcept;
|
||||
bool Format(const char *fmt, ...) noexcept;
|
||||
|
||||
static constexpr size_t MAX_BINARY_SIZE = 8192;
|
||||
|
||||
/**
|
||||
* Write a binary chunk; this writes the "binary" line, the
|
||||
* given chunk and the trailing newline.
|
||||
|
Reference in New Issue
Block a user