Re: copy_stream_data

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 10/02/2013 01:59 AM, Josef Frydl wrote:
> Please help
> 
> I am using httP_open and copy_stream_data and getting this error
> 
> Foreign predicate copy_stream_data/2 did not clear exception:
> time_limit_exceeded, document would be     couple of MB
> 
> Is there a way to increase time limit?

set_stream(Stream, timeout(Time)).

But note that the timeout is not on the whole operation but
merely defines the maximum blocking time, i.e., the timeout
is generated if *no* new data is received for Time seconds.

Time can be the atom =infinite=.  That doesn't imply an
infinite wait on a socket.  It will wait as long as the OS
is prepared to wait.

	Cheers --- Jan

> 
> Thanks Josef Frydl _______________________________________________ 
> SWI-Prolog mailing list [email protected] 
> https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.