You are not logged in.
I would like to simulate the delay of a wan network locally. This is my issue, I have several mORMot services in different branches talking to each others. I have some exceptions that I described in another post but when I do a simulation with the same data locally in my laptop, there are no such exceptions. It is impossible to install delphi and debug in those branches and my idea so far is that exceptions are due to the low speed of the internet connection. So any idea about that simulation?
Offline
You can for instance add a Sleep(500) on the client side:
procedure TSQLHttpClientGeneric.InternalURI(var Call: TSQLRestURIParams);
...
Sleep(500); // or 100 or 200 or 1000 or 1500 or 2500
end;
Offline
see this new feature - http://synopse.info/forum/viewtopic.php … 103#p10103 (after AB commit patch you can try to use MaxBandwidth)
Also I use http://www.telerik.com/fiddler as a proxy - it allow to limit speed (actually in the same way AB said above - insert a timeout), but you do not need to recompile your sources
Offline
We have added THttpApiServer.MaxBandwidth and THttpApiServer.MaxConnections properties (for HTTP API 2.0 only)...
See http://synopse.info/fossil/info/4e61734d33
Thanks mpv for the proposal and code patch!
Offline