{"id":24330109,"url":"https://github.com/jscheid/socketry-async-368","last_synced_at":"2026-04-13T11:32:44.762Z","repository":{"id":271902438,"uuid":"914927545","full_name":"jscheid/socketry-async-368","owner":"jscheid","description":"https://github.com/socketry/async/issues/368","archived":false,"fork":false,"pushed_at":"2025-01-13T21:56:35.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-25T23:35:51.566Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/jscheid.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}},"created_at":"2025-01-10T15:42:45.000Z","updated_at":"2025-01-13T21:56:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"da990869-b58f-4c47-89cf-8aea6c1f563d","html_url":"https://github.com/jscheid/socketry-async-368","commit_stats":null,"previous_names":["jscheid/socketry-async-368"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jscheid/socketry-async-368","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jscheid%2Fsocketry-async-368","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jscheid%2Fsocketry-async-368/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jscheid%2Fsocketry-async-368/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jscheid%2Fsocketry-async-368/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jscheid","download_url":"https://codeload.github.com/jscheid/socketry-async-368/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jscheid%2Fsocketry-async-368/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31751389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2025-01-18T00:55:45.345Z","updated_at":"2026-04-13T11:32:44.750Z","avatar_url":"https://github.com/jscheid.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test case for `UDPSocket#close` hanging\n\nSee https://github.com/socketry/async/issues/368\n\nThis is the behaviour I can observe on my machine:\n\n## Running on macOS with Ruby 3.3.0\n\nRunning `statsd.timing` only in sync blocks works fine:\n\n```\nbundle \u0026\u0026 bundle exec ruby test.rb 0 # returns after a second or so\n```\n\nRunning 50/50 sync and async will hang:\n\n```\nbundle \u0026\u0026 bundle exec ruby test.rb 0.5 # hangs\n```\n\nSo does running with only async, no sync:\n\n```\nbundle \u0026\u0026 bundle exec ruby test.rb 1 # hangs\n```\n\n## Running in Docker with Ruby 3.4.1\n\nRunning only sync blocks works fine:\n\n```\ndocker compose run --rm -e ASYNC_PERCENT=0 test # returns after a second or so\n```\n\nUnlike running on the host, so does running _only_ async blocks:\n\n```\ndocker compose run --rm -e ASYNC_PERCENT=1 test # returns after a second or so\n```\n\nBut, running 50/50 sync and async will hang again:\n\n```\ndocker compose run --rm -e ASYNC_PERCENT=0.5 test # hangs\n```\n\n## Poking around the process\n\nIn one terminal:\n\n```\ndocker compose up test # hangs\n```\n\nIn another terminal:\n\n```\ndocker compose exec test bundle exec pry-remote\n```\n\nIn the pry console:\n\n```ruby\n$tasks.each(\u0026:print_hierarchy)\n```\n\n... should show one fiber hanging in `IO#close`, the others waiting to get the Mutex.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjscheid%2Fsocketry-async-368","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjscheid%2Fsocketry-async-368","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjscheid%2Fsocketry-async-368/lists"}