public override Int32 MaxPackageSize
{
get
{
return base.MaxPackageSize;
}
set
{
base.MaxPackageSize = value;
this.Server.MaxPostSize = value + 1024; //<<<<<<<<<< negative value
}
}
What exactly do you suggest I change? The server side limitation?
This int.MaxValue has been in the code for a long time. Changing this does not solve the issue.
Can you deduce something from the callstack?
The ‘Connection reset by peer’ exception is not very explanatory.
To be clear, the error message changed from a clear/proper "Package too large” exception to a less informative and probably lower-level “connection reset by peer” error, now, but it still only happens on large requests? To me the sound like something else is going on, a disconnect on TCP stack or lower network level, not in Remoting SDK. Is this with a direct connection between client and server, or could there be any network infrastructure in-between that might enforce limits?
Update: also, can you tell whether this fails while sending the request (e.g. before the server ever receives/executes it on high RO/DA level), or the way back (eg when the server sends the response)?
The server and client run on my development machine.
The network is not the issue.
The software works fine and many RO calls occur before
At present the error is in the ApplyUpdates
I can bypass the issue by performing multiple (smaller) ApplyUpdates.
So in some loop I write
if FProductPrijsTable.Delta.Count>=ctMaxLoadRecords then
FProductPrijsTable.ApplyUpdates();
Your test case works.
The solution you proposed was the correct fix.
Unfortunalty via name completion I wrote
channel.SecurityOptions.MaxRequestTime=maxMesSize;
and I was able to look over this error of mine for the past 6 hours
By putting
channel.SecurityOptions.MaxRequestSize=maxMesSize;
the code works fine.
The MaxRequestTime even explains the ‘connection reset by peer’.