You are not logged in.
Pages: 1
I noticed that in interface calls if the call takes longer then 30 seconds it is droped by the client .
Where can I configure this timeout .
I tried to increase keepAlive but it doesn't help .
I created that service to check it
ITests = interface(IInvokable)
['{0214C711-E14B-4D86-B418-B48553EDA24C}']
function test_wait(p_mili:integer):integer;
end;
TTests = class(TInterfacedObject, ITests)
public
function test_wait(p_mili: integer): integer;
end;
function TTests.test_wait(p_mili: integer): integer;
var
speedTester:TspeedTester;
begin
speedTester.start;
my_sleep(p_mili);
result := speedTester.elapsed;
end;
type
TspeedTester = record
private
startTime: int64;
public
procedure start;
function elapsed: int64;
function elapsedSTR: string;
end;
implementation
{ TspeedTester }
function TspeedTester.elapsed: int64;
begin
result := GetTickCount - startTime;
end;
function TspeedTester.elapsedSTR: string;
begin
result := inttostr(elapsed);
end;
procedure TspeedTester.start;
begin
startTime := GetTickCount;
end;
Offline
Is it broken on the server side or the client side?
On the server side, you should not have a method taking so much time.
You may better use a dedicated thread for the process, and make the method asynchronous.
AFAIR there are some timeout properties at client side.
Offline
This is broken on the client side
it isn't in the main thread and used for uploading/downloading data in the background .
What's the property name on the client for request timeout
Offline
Pages: 1