Simple C HTTP server for simulating latency (and varience) while load-testing intermediary HTTP service (such as a reverse proxy)
Currently there are two route/response scenarios
- / (root)
- Response string:
^_^
- Response code: 200
- Response timing: random latency (currently 300-600 ms range - TODO: make configuratoin)
- Response string:
- Any other URI path
- Response string:
Not found .. ~_~
- Response code: 404
- Response timing: As fast as possible - no synthesized latency
- NOTE:
Intended for use as a CONTROL variable
- Response string:
Only tested on Linux and Darwin
NOTE: You want to fix the LIBEVENT path in the Makefile (and maybe gcc if it's not in your PATH)
make