Skip to content
This repository was archived by the owner on Mar 28, 2019. It is now read-only.

Commit 48b99b9

Browse files
committed
Codejudge Compiler server now sends status code for a timeout
1 parent a4ff026 commit 48b99b9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

codejudge-compiler/src/codejudge/compiler/RequestThread.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,12 @@ else if(lang.equals("python"))
7070
} else {
7171
// execute the program and return output
7272
l.execute();
73-
out.println("1");
74-
out.println(execMsg());
73+
if(l.timedout)
74+
out.println(2);
75+
else {
76+
out.println("1");
77+
out.println(execMsg());
78+
}
7579
}
7680
s.close();
7781
} catch (IOException e) {

0 commit comments

Comments
 (0)