{"id":23748045,"url":"https://github.com/indiependente/srs","last_synced_at":"2026-03-10T13:30:20.383Z","repository":{"id":73263114,"uuid":"300325212","full_name":"indiependente/srs","owner":"indiependente","description":"Slow Request Simulator","archived":false,"fork":false,"pushed_at":"2020-10-01T16:50:32.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T05:17:02.628Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/indiependente.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2020-10-01T15:19:00.000Z","updated_at":"2024-06-19T07:38:14.972Z","dependencies_parsed_at":null,"dependency_job_id":"b1901d87-785f-47fa-a9c7-0755751f5325","html_url":"https://github.com/indiependente/srs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indiependente%2Fsrs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indiependente%2Fsrs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indiependente%2Fsrs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indiependente%2Fsrs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indiependente","download_url":"https://codeload.github.com/indiependente/srs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239907785,"owners_count":19716689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-12-31T14:59:03.713Z","updated_at":"2026-03-10T13:30:20.330Z","avatar_url":"https://github.com/indiependente.png","language":"Go","readme":"# Slow Request Simulator (SRS)\n\nSRS is a simple Go program that simulates a timeout bounded HTTP server where  execution time of each request can be set using a url query param.\n\n## Server\n`./srs 5`\n\n```bash\n    ./srs n\n\n        n must be an integer representing the number of seconds before the server times out\n```\n\n## Client\n`curl localhost:8090/hello\\?t=6`\n\n```bash\n    curl localhost:8090/hello\\?t=6\n    \n        t must be an integer representing the number of seconds the request will take to complete\n```\n\n## Example using http CLI\n\n - Happy path (request takes less or as much as timeout allows)\n```bash\nhttp :8090/hello\\?t=5\nHTTP/1.1 200 OK\nContent-Length: 9\nContent-Type: text/plain; charset=utf-8\nDate: Thu, 01 Oct 2020 14:55:36 GMT\n\nall good\n```\n\n - Sad path (request takes longer than timeout allows)\n```bash\nhttp :8090/hello\\?t=6\nHTTP/1.1 500 Internal Server Error\nContent-Length: 26\nContent-Type: text/plain; charset=utf-8\nDate: Thu, 01 Oct 2020 15:03:32 GMT\nX-Content-Type-Options: nosniff\n\ncontext deadline exceeded\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findiependente%2Fsrs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findiependente%2Fsrs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findiependente%2Fsrs/lists"}