Skip to content

Commit 20d73be

Browse files
committed
Up limit
1 parent 27fb4b5 commit 20d73be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pytest_pl_grader/_student_code_runner.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,10 @@ async def main():
358358
except NotImplementedError:
359359
print("ProactorEventLoop not available, continuing with default loop.", file=sys.stderr)
360360

361+
line_limit = 10 * 1024 * 1024 # 10 MB line limit to handle large messages
362+
361363
# Start the server, binding to the specified host and port
362-
server = await asyncio.start_server(handle_client, HOST, 0)
364+
server = await asyncio.start_server(handle_client, HOST, 0, limit=line_limit)
363365
addr = server.sockets[0].getsockname()
364366
print(f"{addr[0]}, {addr[1]}", flush=True)
365367

0 commit comments

Comments
 (0)