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?
Client-side message length error
Re: Client-side message length error
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:
, to something that suits your application better.
Thanks for reporting this. I'll make sure we fix this and get a new build out.
Code: Select all
std::size_t gDefaultMaxMessageLength = 1024*1024; // 1 Mb
Thanks for reporting this. I'll make sure we fix this and get a new build out.
-
- Posts: 4
- Joined: Thu Mar 23, 2017 10:34 am
Re: Client-side message length error
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
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
I am also facing the same issue. Any way to resolve it?
Regards
-Sanjeev
Regards
-Sanjeev
-
- Posts: 4
- Joined: Thu Mar 23, 2017 10:34 am
Re: Client-side message length error
Hi,
Any updates on this? Fix for setting message length in c# client is required urgently.
Regards,
Divita
Any updates on this? Fix for setting message length in c# client is required urgently.
Regards,
Divita
Re: Client-side message length error
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...
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...