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,
|
.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;
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user