diff --git a/applications/services/rpc/rpc.c b/applications/services/rpc/rpc.c index 63a71ad0..57a4ec9a 100644 --- a/applications/services/rpc/rpc.c +++ b/applications/services/rpc/rpc.c @@ -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; diff --git a/applications/services/rpc/rpc.h b/applications/services/rpc/rpc.h index 21836d9a..ec290e08 100644 --- a/applications/services/rpc/rpc.h +++ b/applications/services/rpc/rpc.h @@ -10,7 +10,6 @@ extern "C" { #endif #define RPC_BUFFER_SIZE (1024) -#define RPC_MAX_MESSAGE_SIZE (1536) #define RECORD_RPC "rpc"