Skip to content

HTTP server which follows a simplification of the HTTP protocol written in C. Also, a load balancer to dispatch requests to multiple instances of the httpsever.

Notifications You must be signed in to change notification settings

afd998/httpserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To run the code you first need to build ./httpserver by doing:

$make

(If you want to delete the binaries run $make clean)

Next, you can start the server by doing:

$./httpserver ${port} -N ${num_threads} -l ${logfile_name}

where ${port} is an interger > 7999 where ${num_threads} is an interger where ${logfile} is a file to be used as the log

-N ${num_threads} and -l ${logfile_name} my be ommited

This server will fail with concurrent requests to the same resource.

To stop the server on MACOS/LINUX press ctrl and C.

About

HTTP server which follows a simplification of the HTTP protocol written in C. Also, a load balancer to dispatch requests to multiple instances of the httpsever.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published