{"id":44659847,"url":"https://github.com/kalmhq/echoserver","last_synced_at":"2026-02-14T23:00:56.259Z","repository":{"id":57638596,"uuid":"284042547","full_name":"kalmhq/echoserver","owner":"kalmhq","description":"A test image for http1.1, http2, GRP, TCP, UDP protocols.","archived":false,"fork":false,"pushed_at":"2020-12-10T06:45:04.000Z","size":27,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-15T04:46:21.805Z","etag":null,"topics":["docker-image","grpc-server","grpcurl","http-server","http2-server","protocols","testing"],"latest_commit_sha":null,"homepage":"https://github.com/kalmhq/echoserver","language":"Go","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/kalmhq.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}},"created_at":"2020-07-31T13:25:48.000Z","updated_at":"2024-10-07T19:58:47.000Z","dependencies_parsed_at":"2022-08-30T05:53:04.605Z","dependency_job_id":null,"html_url":"https://github.com/kalmhq/echoserver","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/kalmhq/echoserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalmhq%2Fechoserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalmhq%2Fechoserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalmhq%2Fechoserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalmhq%2Fechoserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kalmhq","download_url":"https://codeload.github.com/kalmhq/echoserver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalmhq%2Fechoserver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29460136,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T22:42:09.113Z","status":"ssl_error","status_checked_at":"2026-02-14T22:42:05.053Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker-image","grpc-server","grpcurl","http-server","http2-server","protocols","testing"],"created_at":"2026-02-14T23:00:27.766Z","updated_at":"2026-02-14T23:00:56.241Z","avatar_url":"https://github.com/kalmhq.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Intro\n\nThis is a test project. Run different protocols on multiple ports to test the protocol forwarding in istio.\n\n\n| Port | Protocols                                                                          |\n|------|------------------------------------------------------------------------------------|\n| 8001 | Plain http server. Supports http/1.0, http/1.1                                     |\n| 8002 | Non-TLS http2 server, aka h2c. Supports upgrade from http/1.1 and prior knowledge. |\n| 8003 | TLS-Enabled http2 server.                                                          |\n| 8004 | Non-TLS Grpc server.                                                               |\n| 8005 | TLS-Enabled Grpc server.                                                           |\n| 8006 | Non-TLS TCP server.                                                           |\n| 8007 | UDP server.                                                           |\n\n# Run\n\n### localhost\npull this repo and run\n\n```bash\ngo run .\n```\n\n### docker\n\n```bash\ndocker run --rm -p 8001-8010:8001-8010 kalmhq/echoserver:latest\n```\n\n# Test \nBefore run tests. Upgrade your `curl` to the lastest version.\n\n### Test 8001\n\n```bash\n# http 1.0\ncurl --http1.0 http://localhost:8001/path\\?query\\=1 -v\n# =\u003e http 1.0 response\n\n# http 1.1\ncurl --http1.1 http://localhost:8001/path\\?query\\=1 -v\n# =\u003e http 1.1 response \n\n# http 2\ncurl --http2 http://localhost:8001/path\\?query\\=1 -v\n# =\u003e http 1.1 response\n```\n\n### Test 8002\n\n```bash\n# http 1.0\ncurl --http1.0 http://localhost:8002/path\\?query\\=1 -v\n# =\u003e http 1.0 response\n\n# http 1.1\ncurl --http1.1 http://localhost:8002/path\\?query\\=1 -v\n# =\u003e http 1.1 response \n\n# http 2~\ncurl --http2 http://localhost:8002/path\\?query\\=1 -v\n# =\u003e switching protocol, connection upgrade\n# =\u003e http 2 response\n\n# http 2\ncurl --http2-prior-knowledge http://localhost:8002/path\\?query\\=1 -v\n# =\u003e use h2 directly\n# =\u003e http 2 response\n```\n\n### Test 8003\n\n```bash\n# http 1.1\ncurl --http1.1 https://localhost:8003/path\\?query\\=1 -v -k\n# =\u003e http 1.1 response \n\n# http 2\ncurl --http2 https://localhost:8003/path\\?query\\=1 -v -k\n# =\u003e ALPN h2\n# =\u003e http 2 response\n```\n\n### Test 8004\n\nPlease make sure you have  [grpcurl](https://github.com/fullstorydev/grpcurl) installed.\n\n```bash\ngrpcurl -plaintext localhost:8004 main.HelloWorld/Greeting\n```\n\n### Test 8005\n\nPlease make sure you have [grpcurl](https://github.com/fullstorydev/grpcurl) installed.\n\n```bash\ngrpcurl -insecure localhost:8005 main.HelloWorld/Greeting\n```\n### Test 8006\n\nUse `telnet`\n\n```bash\ntelnet localhost 8006\n\n# type something and press enter\n# Use ctrl + ] and ctrl + D to exit\n```\n\nUse `nc`\n\n```bash\nnc -v localhost 8006\n\n# type something and press enter\n# Use ctrl + c to exit\n```\n\n### Test 8007\n\nUse `nc`\n\n```bash\nnc -uv localhost 8007\n\n# type something and press enter \n# Use ctrl + c to exit\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalmhq%2Fechoserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkalmhq%2Fechoserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalmhq%2Fechoserver/lists"}