This is the cmput 379 assignment 2 for Fall 2014. An simple webserver implementation. If you are a UofA student using this code, please don't hand it in as your own. Use as a reference only.
Using posix threads to service requests.
Handing in with the following remaining
Need to do:
- Change attributes to start in kernel detached mode.
Fully complete
-
Needs Signal handling
-
No memory leak testing. There is at least 1 known
-
Code could definitely be cleaned up and sepparated into specific files better
-
Parsing commandline arguments is kind of fragile.
-
Parsing http header is kind of fragile
- a severly malformed header could cause problems
-
SEVERE lack of error handling for things like opening files, requesting memory
- Lack of error handling in general
-
Critical Security Issue: could pass malicious path in http header server would attempt to open it