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:  [email protected]
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

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/41B67F14E014C54DAD950DD2618E4F24C88E81%40SV03.m-a-i.local.
For more options, visit https://groups.google.com/d/optout.

Reply via email to