#1 2017-04-02 10:56:47

xchinjo
Member
From: Thailand
Registered: 2016-04-29
Posts: 41
Website

Interface base service execute long time response error

TInterfacedObjectFakeClient.FakeCall(IRemoteSQL.Execute) failed: 'URI root/RemoteSQL.Execute/4
returned status 'Invalid Request' (501 - Server not reachable or broken connection)'.


Jongruk Aripoo

Offline

#2 2017-04-02 15:12:20

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Interface base service execute long time response error

This is as defined.

You can enhance the timeouts on client side.
Or, even better, change your SQL request to use paging and return less information.

Offline

#3 2017-04-02 15:15:25

xchinjo
Member
From: Thailand
Registered: 2016-04-29
Posts: 41
Website

Re: Interface base service execute long time response error

how to enhance the timeouts on client side.
or client side can do callback function?

Last edited by xchinjo (2017-04-02 15:26:16)


Jongruk Aripoo

Offline

#4 2017-04-02 17:39:20

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Interface base service execute long time response error

IMHO the best design, for a mORMot client, is to use a callback interface to notify when the work is finished.
See https://synopse.info/files/html/Synopse … l#TITL_152

Otherwise you can change the timeouts in the constructor Create() method of the HTTP client class.

Offline

#5 2017-04-03 00:25:25

xchinjo
Member
From: Thailand
Registered: 2016-04-29
Posts: 41
Website

Re: Interface base service execute long time response error

thank you.


Jongruk Aripoo

Offline

Board footer

Powered by FluxBB