RPC: increase max message size (#2543)
* RPC: increase max message size * RPC: do not use magic numbers
This commit is contained in:
parent
0161d49d80
commit
ae3a3d6336
@ -244,7 +244,7 @@ static int32_t rpc_session_worker(void* context) {
|
||||
.callback = rpc_pb_stream_read,
|
||||
.state = session,
|
||||
.errmsg = NULL,
|
||||
.bytes_left = RPC_MAX_MESSAGE_SIZE, /* max incoming message size */
|
||||
.bytes_left = SIZE_MAX,
|
||||
};
|
||||
|
||||
bool message_decode_failed = false;
|
||||
|
@ -10,7 +10,6 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#define RPC_BUFFER_SIZE (1024)
|
||||
#define RPC_MAX_MESSAGE_SIZE (1536)
|
||||
|
||||
#define RECORD_RPC "rpc"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user