SWI-Prolog / packages-pengines

Pengines: Prolog engines
11 stars 13 forks source link

Bug with nested pengine_rpc/2 calls #12

Closed torbjornlager closed 9 years ago

torbjornlager commented 9 years ago

There seems to be a problem with chained or "nested" pengine_rcp calls. Can be seen with the following example:

?- use_module(library(pengines)).
true.

% This works fine:

?- pengine_rpc('http://localhost:3030', member(X, [a, b, c])).
X = a ;
X = b ;
X = c.

% This just hangs:

?- pengine_rpc('http://localhost:3030', pengine_rpc('http://localhost:3030', member(X, [a, b, c]))).