{"id":28609940,"url":"https://github.com/allamss/azure-java-sdk-concurrency-repro","last_synced_at":"2025-06-11T22:12:12.048Z","repository":{"id":296130797,"uuid":"992362720","full_name":"Allamss/azure-java-sdk-concurrency-repro","owner":"Allamss","description":"Minimal reproduction repository for 'stream was reset: REFUSED_STREAM' errors when making concurrent requests to Azure AI OpenAI (azure-ai-openai).","archived":false,"fork":false,"pushed_at":"2025-05-29T04:07:10.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-29T05:19:04.245Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/Allamss.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}},"created_at":"2025-05-29T03:17:46.000Z","updated_at":"2025-05-29T04:07:12.000Z","dependencies_parsed_at":"2025-05-29T05:29:26.488Z","dependency_job_id":null,"html_url":"https://github.com/Allamss/azure-java-sdk-concurrency-repro","commit_stats":null,"previous_names":["allamss/azure-java-sdk-concurrency-repro"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Allamss/azure-java-sdk-concurrency-repro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Allamss%2Fazure-java-sdk-concurrency-repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Allamss%2Fazure-java-sdk-concurrency-repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Allamss%2Fazure-java-sdk-concurrency-repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Allamss%2Fazure-java-sdk-concurrency-repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Allamss","download_url":"https://codeload.github.com/Allamss/azure-java-sdk-concurrency-repro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Allamss%2Fazure-java-sdk-concurrency-repro/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259353810,"owners_count":22844765,"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":"2025-06-11T22:12:11.302Z","updated_at":"2025-06-11T22:12:12.042Z","avatar_url":"https://github.com/Allamss.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# azure-java-sdk-concurrency-repro\nMinimal reproduction repository for 'stream was reset: REFUSED_STREAM' errors when making concurrent requests to Azure AI OpenAI (azure-ai-openai).\n\n## Environment\n- Java 21.0.7 https://adoptium.net/zh-CN/temurin/releases/?os=any\u0026arch=any\u0026version=21\n- Maven 3.9.9\n\n## Reproduction Steps\n1. Clone this repository.\n2. set the azure endpoint/key/deploymentName in AzureOpenAIConcurrencyTest.java\n3. run main()\n\n## Behavior\n```\nUncheckedIOException: okhttp3.internal.http2.StreamResetException: stream was reset: REFUSED_STREAM\nINFO com.azure.core.http.policy.RetryPolicy - {\"az.sdk.message\":\"Retry attempts have been exhausted.\",\"tryCount\":3}\n=== TEST RESULTS STATISTICS ===\nTOTAL NUMBER OF REQUESTS: 5000\nNUMBER OF SUCCESSFUL REQUESTS: 3556\nNUMBER OF FAILED REQUESTS: 1444\nNUMBER OF CONNECTION RESET ERRORS: 0\nTOTAL TIME CONSUMPTION: 44.011 秒\nAVERAGE QPS: 113.61\nSUCCESS RATE: 71.12%\nCONNECTION RESET RATE: 0.00%\nTEST END TIME: 2025-05-29 11:58:50\n========================================\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallamss%2Fazure-java-sdk-concurrency-repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallamss%2Fazure-java-sdk-concurrency-repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallamss%2Fazure-java-sdk-concurrency-repro/lists"}