{"id":15653689,"url":"https://github.com/database64128/tfo-go","last_synced_at":"2025-04-07T15:10:54.416Z","repository":{"id":37814610,"uuid":"421332747","full_name":"database64128/tfo-go","owner":"database64128","description":"TCP Fast Open support for Go.","archived":false,"fork":false,"pushed_at":"2025-03-08T02:37:58.000Z","size":215,"stargazers_count":34,"open_issues_count":1,"forks_count":11,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T14:11:27.235Z","etag":null,"topics":["go","golang","tcp-fastopen"],"latest_commit_sha":null,"homepage":"","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/database64128.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":"2021-10-26T07:56:57.000Z","updated_at":"2025-03-08T02:38:01.000Z","dependencies_parsed_at":"2023-10-10T22:06:28.082Z","dependency_job_id":"690b5e62-263e-489a-85d0-869517a3f68a","html_url":"https://github.com/database64128/tfo-go","commit_stats":{"total_commits":165,"total_committers":3,"mean_commits":55.0,"dds":0.4121212121212121,"last_synced_commit":"655526400b5683cf51351d0af13c73c351c748d9"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/database64128%2Ftfo-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/database64128%2Ftfo-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/database64128%2Ftfo-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/database64128%2Ftfo-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/database64128","download_url":"https://codeload.github.com/database64128/tfo-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675607,"owners_count":20977378,"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":["go","golang","tcp-fastopen"],"created_at":"2024-10-03T12:46:31.302Z","updated_at":"2025-04-07T15:10:54.390Z","avatar_url":"https://github.com/database64128.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `tfo-go`\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/database64128/tfo-go/v2.svg)](https://pkg.go.dev/github.com/database64128/tfo-go/v2)\n[![Test](https://github.com/database64128/tfo-go/actions/workflows/test.yml/badge.svg)](https://github.com/database64128/tfo-go/actions/workflows/test.yml)\n\n`tfo-go` provides TCP Fast Open support for the `net` dialer and listener.\n\n```bash\ngo get github.com/database64128/tfo-go/v2\n```\n\n### Windows support with Go 1.23 and later\n\n`tfo-go`'s Windows support requires extensive usage of `//go:linkname` to access Go runtime internals, as there's currently no public API for Windows async IO in the standard library. Unfortunately, the Go team has decided to [lock down future uses of linkname](https://github.com/golang/go/issues/67401), starting with Go 1.23. And our bid to get the linknames we need exempted was [partially rejected](https://github.com/golang/go/issues/67401#issuecomment-2126175774). Therefore, we had to make the following changes:\n\n- Windows support is gated behind the build tag `tfogo_checklinkname0` when building with Go 1.23 and later.\n- With Go 1.21 and 1.22, `tfo-go` still provides full Windows support, with or without the build tag.\n- With Go 1.23 and later, when the build tag is not specified, `tfo-go` only supports `listen` with TFO on Windows. To get full TFO support on Windows, the build tag `tfogo_checklinkname0` must be specified along with linker flag `-checklinkname=0` to disable the linkname check.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatabase64128%2Ftfo-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatabase64128%2Ftfo-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatabase64128%2Ftfo-go/lists"}