summaryrefslogtreecommitdiff
path: root/python_server.py
AgeCommit message (Collapse)Author
2011-11-24ENH/TMP: Preliminary support for bash scripts.Prabhu Ramachandran
- Changing the Question model to add a language attribute. - Moving python_server.py -> code_server.py. - Adding functionality to test for Shell scripts. This is still incomplete since the shell code checker seems to have some problems. - Modified the xmlrpc_clients to support multiple languages and right now two. - Using setgid/setuid instead of setegid/seteuid in the code_server.py.. - Adding a bash example to the sample_questions.py. The shell script support doesn't quite work yet but this is really a code_server/checking issue.
2011-11-20ENH: Python server can now run multiple serversPrabhu Ramachandran
- the SERVER_PORTS is now a list of ports and when you run python_server.py it will run as many servers as desired. - python_server.py now will create multiple servers via multiprocessing. - the xmlrpc_clients.py is changed to deal with these multiple servers. This allows us to handle many incoming requests. These changes allow us to run the online test for many users. We had over 400 simultaneous users and a total of about 650 users using the app with these modifications.
2011-11-19Configure server port and timeout in settings.pyPrabhu Ramachandran
Also updated documentation.
2011-11-19Setting timeout to 2 and refactoring a littlePrabhu Ramachandran
Setting default timeout to 2 seconds. Also made the run_as_nobody a function so the rest of the server can be tested without the need to sudo it.
2011-11-15BUG: Adding timeout to test code evaluation.Prabhu Ramachandran
If a user submitted code with an errant loop that loops forever or locks up for any reason, it would take the code server down. I now add a timeout of 3 seconds for the evaluation and tests failing which it is an error.
2011-11-13Revert last commit.Prabhu Ramachandran
"ENH: Improved traceback reporting from server. " Strangely, the reporting by this is not as good as my hand-rolled code. This reverts commit bc343c26cf3aac699c08129034b41317bac16f76.
2011-11-13ENH: Improved traceback reporting from server.Prabhu Ramachandran
2011-11-12ENH/BUG: Python server bug and user directoryPrabhu Ramachandran
The Python server was not setting the effective gid. There was also a bug in that traceback was not imported. Added option so that the python server chdirs to a user specific directory in order that a user can save files which could be used as part of the test.
2011-11-12ENH: Running remote code safely via XMLRPC.Prabhu Ramachandran
Adding a python_server which executes code as nobody safely so users cannot do too much damage.