Client-side message length error

RCFProto support and general discussion.
Post Reply
mou
Posts: 19
Joined: Fri Sep 26, 2014 7:53 am

Client-side message length error

Post 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?

jarl
Posts: 238
Joined: Mon Oct 03, 2011 4:53 am
Contact:

Re: Client-side message length error

Post 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.
Kind Regards

Jarl Lindrud
Delta V Software
http://www.deltavsoft.com

divita.gorakhpuria
Posts: 4
Joined: Thu Mar 23, 2017 10:34 am

Re: Client-side message length error

Post 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

sanjeevji
Posts: 8
Joined: Mon Feb 13, 2017 7:33 pm

Re: Client-side message length error

Post by sanjeevji »

I am also facing the same issue. Any way to resolve it?

Regards

-Sanjeev

divita.gorakhpuria
Posts: 4
Joined: Thu Mar 23, 2017 10:34 am

Re: Client-side message length error

Post by divita.gorakhpuria »

Hi,

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

Regards,
Divita

jarl
Posts: 238
Joined: Mon Oct 03, 2011 4:53 am
Contact:

Re: Client-side message length error

Post 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...
Kind Regards

Jarl Lindrud
Delta V Software
http://www.deltavsoft.com

Post Reply