Open aeghost opened 1 year ago
I'm also encountering this on OpenBSD which doesn't seem to support _NPROCESSORS_ONLN
. Wrapping the input_line
call in a try/with as described above works around the issue. It would be great to see this fixed upstream, and I could submit a pull request if desired.
Hi.
I used Opium with OpenAPI addon, to make a prototype locally, in normal Fedora/Linux environment, that works wonderfully, but when deployed on targeted system, binary crashed because
End_of_file
exception.After some investigations, it comes from App.ml, l. 106.
Opium is deployed in a minimalist chroot, on a custom build Linux environment with no rights.
It means, that there is no
getconf
(input_line
raisedEnd_of_file
), and noshell
accessible for any binaries for security reasons (soUnix.open_process_in
does not work either, even withgetconf
accessible).I would propose an evolution, or at least a "normal" patch that would consist in catching ALL unexposed, raised exception.
In this case, I would propose.
Or maybe add a
?(available_cores = 1)
parameter in server options that would let the user define how many cores Webserver should use.But the only solution we found is using a proxy of Opium just to patch this, which is not a valid long term solution ;D. So hopping it deserves a patch and a 0.21.0.
By wishing you a good day,
Matthieu GOSSET