Skip to content

Commit 1363a9d

Browse files
author
Leo Alt
committed
increase child process buffer for large outputs
1 parent 5bb87fd commit 1363a9d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

smtsolver.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ function solve (query, solver) {
4141
try {
4242
solverOutput = execSync(
4343
solver.command + ' ' + solver.params + ' ' + tmpFile.name, {
44-
stdio: 'pipe'
44+
encoding: 'utf8',
45+
maxBuffer: 1024 * 1024 * 1024,
46+
stdio: 'pipe',
47+
timeout: timeout // Enforce timeout on the process, since solvers can sometimes go arount it.
4548
}
4649
).toString();
4750
} catch (e) {

0 commit comments

Comments
 (0)