Started working on pthreads again.
Merge branch 'master' into testing
Works a lot better now. Still blocking and showing error 400 though.
Made socket non-blocking. pthreads still blocking.
Played around more with it, still doesn't work.
Finally works fine, now the RequestHandler needs to be adjusted, though.
Fixed RequestHandler HTTP parsing. No more 400 errors.
Removed all the test code that was commented in socket.cpp
Removed file that was accidentally created.
Improved the HTTP output a lot.
Prevented SIGPIPE, made it non-blocking.
Added to TODO, stress tests done.