Re: time limit

Jan Wielemaker <[email protected]> Tue, 13 May 2014 08:41:12 +0200
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 05/13/2014 01:10 AM, Josef Fydl wrote:
> I have http_server application, which retrieves a lot of sites, time to time I get this
> Internal server error
> 
> Time limit exceeded
> 
> SWI-Prolog httpd at macintosh-3.local
> 
> 
> Is  there a way to tell server, wait forever?

See the time_limit(+Seconds) option of http_hander/3.  You can pass the
atom `infinite`.
Typically, you don't want this style of interface for HTTP though.  As a
user, you'd
probably want to launch an asynchronous task and have HTTP actions to
monitor and
control the progress of this task.  Would be nice to have a good library
for this
type of scenario.

	Cheers --- Jan

> Thanks Josef Frydl
> -------------- next part --------------
> HTML attachment scrubbed and removed
> _______________________________________________
> SWI-Prolog mailing list
> [email protected]
> https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
>