#1 2019-01-03 12:18:22

Codorna
Member
Registered: 2018-06-26
Posts: 21

How do I set a HTTP timeout to an interfaced service call?

I got an interface with a ping command among others


(interface was already defined with fPipeClient.ServiceDefine)
service := fPipeClient.Services[fServiceName];
if service <> nil then
  if service.Get(I) then
    result := I.ping;


I need this I.ping to be  quick, like, if no answer in 10 millisecs just return false, I have not found a timeout property.

Thanks.

Offline

#2 2019-01-04 11:37:33

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

Re: How do I set a HTTP timeout to an interfaced service call?

There is no such feature, since our network communication is based on HTTP/HTTPS which doesn't allow this kind of requests.
Use a background thread.

Offline

#3 2019-01-07 12:03:45

Codorna
Member
Registered: 2018-06-26
Posts: 21

Re: How do I set a HTTP timeout to an interfaced service call?

Thank you, great idea.

Offline

Board footer

Powered by FluxBB