RPC: increase max message size (#2543)

* RPC: increase max message size
* RPC: do not use magic numbers
This commit is contained in:
Sergey Gavrilov 2023-03-31 00:15:15 -07:00 committed by GitHub
parent 0161d49d80
commit ae3a3d6336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -244,7 +244,7 @@ static int32_t rpc_session_worker(void* context) {
.callback = rpc_pb_stream_read, .callback = rpc_pb_stream_read,
.state = session, .state = session,
.errmsg = NULL, .errmsg = NULL,
.bytes_left = RPC_MAX_MESSAGE_SIZE, /* max incoming message size */ .bytes_left = SIZE_MAX,
}; };
bool message_decode_failed = false; bool message_decode_failed = false;

View File

@ -10,7 +10,6 @@ extern "C" {
#endif #endif
#define RPC_BUFFER_SIZE (1024) #define RPC_BUFFER_SIZE (1024)
#define RPC_MAX_MESSAGE_SIZE (1536)
#define RECORD_RPC "rpc" #define RECORD_RPC "rpc"