diff options
author | 2020-11-20 22:25:25 +0100 | |
---|---|---|
committer | 2020-11-20 22:40:24 +0100 | |
commit | 83e458660efca9cfe229001ce7580412b98380bd (patch) | |
tree | 9c894bf6d93ac054c1ecfee2111dd6622474f41c | |
parent | Keep output that took us over the output limit (diff) |
Increase number of characters in each read chunk
I've increased the number of characters in each chunk we read from
stdout to 10_000. This means we now read roughly 10 KB - 40 KB in each
chunk.
-rw-r--r-- | snekbox/nsjail.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/snekbox/nsjail.py b/snekbox/nsjail.py index 9b39789..a1695a5 100644 --- a/snekbox/nsjail.py +++ b/snekbox/nsjail.py @@ -122,7 +122,7 @@ class NsJail: # We'll consume STDOUT as long as the NsJail subprocess is running. while nsjail.poll() is None: - chars = nsjail.stdout.read(100) + chars = nsjail.stdout.read(10_000) output_size += sys.getsizeof(chars) output.append(chars) |