[fpc-pascal] CGI/FastCGI and WS request with a max time response

Michael Van Canneyt michael at freepascal.org
Thu Jan 4 21:33:31 CET 2018

On Thu, 4 Jan 2018, Marcos Douglas B. Santos wrote:

> Hi,
> I have a FastCGI application which needs to receive an user request but, in
> some cases, the app should consume a WebService(WS) before make the
> response to the user.
> The problem is that the WS could take so long time that the entire request
> will broke with a "time out".
> My question is: Can I consume this WS with a max time to wait?

If you use a thread to consume it, yes.

Without more info on how you consume this webservice, it's difficult to
answer this.


More information about the fpc-pascal mailing list