Increase max content size in HttpReader.
GitOrigin-RevId: c31b929989d4ab3d4baf6e487488a27b190a11c1
This commit is contained in:
parent
0e39e01cc1
commit
37fa018c28
@ -101,11 +101,11 @@ class HttpReader {
|
||||
void close_temp_file();
|
||||
void clean_temporary_file();
|
||||
|
||||
static constexpr size_t MAX_CONTENT_SIZE = 150 << 20; // Some reasonable limit
|
||||
static constexpr size_t MAX_TOTAL_PARAMETERS_LENGTH = 1 << 16; // Some reasonable limit
|
||||
static constexpr size_t MAX_TOTAL_HEADERS_LENGTH = 1 << 18; // Some reasonable limit
|
||||
static constexpr size_t MAX_BOUNDARY_LENGTH = 70; // As defined by RFC1341
|
||||
static constexpr int64 MAX_FILE_SIZE = 2000 << 20; // Telegram server file size limit
|
||||
static constexpr size_t MAX_CONTENT_SIZE = std::numeric_limits<int32>::max(); // Some reasonable limit
|
||||
static constexpr size_t MAX_TOTAL_PARAMETERS_LENGTH = 1 << 16; // Some reasonable limit
|
||||
static constexpr size_t MAX_TOTAL_HEADERS_LENGTH = 1 << 18; // Some reasonable limit
|
||||
static constexpr size_t MAX_BOUNDARY_LENGTH = 70; // As defined by RFC1341
|
||||
static constexpr int64 MAX_FILE_SIZE = 2000 << 20; // Telegram server file size limit
|
||||
static constexpr const char TEMP_DIRECTORY_PREFIX[] = "tdlib-server-tmp";
|
||||
};
|
||||
|
||||
|
@ -45,7 +45,7 @@
|
||||
#ifndef PSAPI_VERSION
|
||||
#define PSAPI_VERSION 1
|
||||
#endif
|
||||
#include <psapi.h>
|
||||
#include <Psapi.h>
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user