{"id":51140542,"url":"https://github.com/sujood-totah/multithreaded-http-server","last_synced_at":"2026-06-25T22:02:29.320Z","repository":{"id":358908484,"uuid":"1243639876","full_name":"sujood-totah/multithreaded-http-server","owner":"sujood-totah","description":"Multithreaded HTTP server in C using TCP sockets, pthreads, and a thread pool.","archived":false,"fork":false,"pushed_at":"2026-05-19T14:31:01.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-19T17:38:59.561Z","etag":null,"topics":["c","computer-networks","http-server","multithreading","networking","pthreads","socket-programming","systems-programming","thread-pool"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sujood-totah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-19T14:23:15.000Z","updated_at":"2026-05-19T14:38:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sujood-totah/multithreaded-http-server","commit_stats":null,"previous_names":["sujood-totah/multithreaded-http-server"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/sujood-totah/multithreaded-http-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujood-totah%2Fmultithreaded-http-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujood-totah%2Fmultithreaded-http-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujood-totah%2Fmultithreaded-http-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujood-totah%2Fmultithreaded-http-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sujood-totah","download_url":"https://codeload.github.com/sujood-totah/multithreaded-http-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujood-totah%2Fmultithreaded-http-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34793960,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","computer-networks","http-server","multithreading","networking","pthreads","socket-programming","systems-programming","thread-pool"],"created_at":"2026-06-25T22:02:28.607Z","updated_at":"2026-06-25T22:02:29.305Z","avatar_url":"https://github.com/sujood-totah.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Multithreaded HTTP Server in C\n\n## Project Description\n\nThis project implements a simple multithreaded HTTP server in C.\n\nThe server accepts client connections over TCP, reads HTTP requests, and sends HTTP responses based on the requested resource.\n\nThe project uses a thread pool to handle multiple client requests efficiently.\n\n---\n\n## Features\n\n- TCP socket server\n- HTTP request parsing\n- Support for GET requests\n- Multithreaded request handling\n- Thread pool implementation\n- Static file serving\n- Directory handling\n- HTTP error responses\n- Connection closing after each response\n\n---\n\n## Files\n\n- `server.c`\n- `threadpool.c`\n- `threadpool.h`\n- `README.md`\n- `Makefile`\n\n---\n\n## Compilation\n\n```bash\nmake\n````\n\nOr manually:\n\n```bash\ngcc -Wall -pthread -o server server.c threadpool.c\n```\n\n---\n\n## Running the Server\n\n```bash\n./server \u003cport\u003e \u003cpool-size\u003e \u003cmax-queue-size\u003e \u003cmax-number-of-requests\u003e\n```\n\nExample:\n\n```bash\n./server 8080 4 10 100\n```\n\nThen open in the browser:\n\n```text\nhttp://localhost:8080/\n```\n\n---\n\n## Supported Responses\n\nThe server handles common HTTP responses such as:\n\n* `200 OK`\n* `302 Found`\n* `400 Bad Request`\n* `403 Forbidden`\n* `404 Not Found`\n* `501 Not Supported`\n* `500 Internal Server Error`\n\n---\n\n## Concepts Used\n\n* C Programming\n* TCP Sockets\n* HTTP Protocol\n* Multithreading\n* pthreads\n* Thread Pool\n* Synchronization\n* File System Handling\n\n---\n\n## Author\n\nSujood Totah\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujood-totah%2Fmultithreaded-http-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsujood-totah%2Fmultithreaded-http-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujood-totah%2Fmultithreaded-http-server/lists"}