Page 1 of 1

Client-side message length error

Posted: Tue Oct 21, 2014 10:25 am
by mou
I got the following error when using RCFProto:
Client-side message length error. Incoming message length: 1332039. Max allowed message length: 1048576.

What should I do if I want transfer long message?

Re: Client-side message length error

Posted: Mon Oct 27, 2014 11:16 pm
by jarl
We missed exposing the RCF maximum message length properties in RCFProto... Sorry about that. For now, what you can do is change the default value in the code, in RCF\src\RCF\ServerTransport.cpp:

Code: Select all

std::size_t gDefaultMaxMessageLength = 1024*1024; // 1 Mb
, to something that suits your application better.

Thanks for reporting this. I'll make sure we fix this and get a new build out.

Re: Client-side message length error

Posted: Thu Mar 23, 2017 10:46 am
by divita.gorakhpuria
Hi,

I am creating a C# client and Java server using RCF Proto 1.2.0.0.
How can I fix this problem in C# client? There is no method exposed to set maximum message length.

Regards,
Divita

Re: Client-side message length error

Posted: Sun Mar 26, 2017 2:06 pm
by sanjeevji
I am also facing the same issue. Any way to resolve it?

Regards

-Sanjeev

Re: Client-side message length error

Posted: Thu Mar 30, 2017 2:48 pm
by divita.gorakhpuria
Hi,

Any updates on this? Fix for setting message length in c# client is required urgently.

Regards,
Divita

Re: Client-side message length error

Posted: Fri Mar 31, 2017 2:02 am
by jarl
OK, I have implemented setMaxMessageLength() on RcfProtoChannel, and built a new release.

Source distribution:
http://www.deltavsoft.com/downloads/RCF ... .3.0.0.zip

Win32 binary distribution:
http://www.deltavsoft.com/downloads/RCF ... .3.0.0.zip

Please have a go with that, and get back to me if there are any issues...