jcrodriguez-dis / moodle-mod_vpl

Virtual Programming Lab for Moodle (Module)
GNU General Public License v3.0
98 stars 85 forks source link

The output is truncated to 32Kb #102

Closed sangdv closed 4 years ago

sangdv commented 4 years ago

The long output is automatically truncated to 32 Kb. How to change this limitation?

jcrodriguez-dis commented 4 years ago

Hi sangdv, you must change the constant JAIL_RESULT_MAX_SIZE to the size that you want (in bytes). see https://github.com/jcrodriguez-dis/vpl-xmlrpc-jail/blob/18dd1f0a931b8c21f2c703bb3c38917c5146f99d/src/jail_limits.h#L21 After change the size you must run the install-vpl.sh to update the daemon.

I think that this must be control by a configuration parameter. I have add this to the TODO list.

Best regards, Juan Carlos.

sangdv commented 4 years ago

Hi, thank you. That works!