Message Size exceeds despit set maxlength parameters

30 views
Skip to first unread message

Florian Otto [M.A.i]

unread,
Jun 19, 2017, 7:22:02 AM6/19/17
to grp...@googlegroups.com
Hi @all,

got a little problem with message sizes in grpc.

Atow we're running grpc-version 1.2.5 on windows 32bit runtime.

We now have the problem that a method returns a status like the following:
status = {code_=INVALID_ARGUMENT (3) details_="Received message larger than max (7690900 vs. 4194304)" }


In the last couple of hours googling i learned that there have been some problems with the associated options in the channel-arguments, but that they've been fixed for a while now.
I tried various combinations and ended up with:

client:
m_grpc_args.SetInt(GRPC_ARG_MAX_SEND_MESSAGE_LENGTH,-1);
m_grpc_args.SetInt(GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH,-1);
m_grpc_args.SetInt(GRPC_ARG_MAX_MESSAGE_LENGTH, -1);
m_grpc_args.SetMaxReceiveMessageSize(-1);
m_grpc_args.SetMaxSendMessageSize(-1);

server:

ServerBuilder builder;
builder.SetMaxMessageSize(-1);
builder.SetMaxReceiveMessageSize(-1);
builder.SetMaxSendMessageSize(-1);

hoping to set everything possible :/ to max values.
But we're still getting the error above.

Any hint what we might miss?


Thanks a lot in advance
florian









Mit freundlichen Grüßen | Best regards

Florian Otto
Softwareentwicklung


M.A.i GmbH & Co. KG
Hummendorfer Straße 74
96317 Kronach - Neuses
Deutschland

Telefon: +49 9261 91000-372
Fax: +49 9261 91000-450
Mobil: +49 151 4675 7182
E-Mail: floria...@m-a-i.de
Web: www.m-a-i.de
Daten: https://datenaustausch.m-a-i.de

Registergericht: Amtsgericht Coburg HRA 3740
Geschäftsführer: Rainer Knaak, Arthur Schwab, Hermann Fischer, Markus Orlowski

Reply all
Reply to author
Forward
0 new messages