#1 mORMot 1 » How to set another value for KeepAliveMS » 2014-05-27 14:08:37

jacson
Replies: 1

Hello,

According to the documentation, the default value for KeepAliveMS is 20 seconds. In the application I'm working, this value should be no more than 5 seconds and none of the three attempts were successful.

TClientDatabaseHTTP = class(TSQLHttpClient)
public
  constructor Create; reintroduce;
end;

constructor TClientDatabaseHTTP.Create;
begin
  inherited Create('127.0.0.1', '779', Model);

  // attempt 1
  SetKeepAliveMS(5000);

  // attempt 2
  KeepAliveMS := 5000;

  // attempt 3
  fKeepAliveMS := 5000;
end;

How do I modify it?

Board footer

Powered by FluxBB