René's URL Explorer Experiment


Title: Use `context.AfterFunc()` instead of a goroutine to track timeouts by ash2k · Pull Request #532 · coder/websocket · GitHub

Open Graph Title: Use `context.AfterFunc()` instead of a goroutine to track timeouts by ash2k · Pull Request #532 · coder/websocket

X Title: Use `context.AfterFunc()` instead of a goroutine to track timeouts by ash2k · Pull Request #532 · coder/websocket

Description: Minimal and idiomatic WebSocket library for Go. Contribute to coder/websocket development by creating an account on GitHub.

Open Graph Description: This is a reworked version of #501 with some minor improvements. Closes #411 Closes #501

X Description: This is a reworked version of #501 with some minor improvements. Closes #411 Closes #501

Opengraph URL: https://github.com/coder/websocket/pull/532

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:08f82595-ec97-26cb-720c-5243c3e8cfab
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8EFC:681B3:7854B1:A90086:6B044FBC
html-safe-nonce1e1b3f1c9c6c354b45587c0537d02ece3cee61871f7c48f7b7116da6552db5e4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUZDOjY4MUIzOjc4NTRCMTpBOTAwODY6NkIwNDRGQkMiLCJ2aXNpdG9yX2lkIjoiNzYyMDkxOTQxNDA5NTEwNTk4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6750116dba371dbefbbfc8c87dcd1d22f8ca5d11f71ba867b78563adbe22bc92
hovercard-subject-tagpull_request:2711599451
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/coder/websocket/532/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/1c0589ab0723ec10b39ff09c136276d5fde6a5134fe38a2e71bcf0e3d7a2599a/coder/websocket/pull/532
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1c0589ab0723ec10b39ff09c136276d5fde6a5134fe38a2e71bcf0e3d7a2599a/coder/websocket/pull/532
og:image:altThis is a reworked version of #501 with some minor improvements. Closes #411 Closes #501
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameash2k
hostnamegithub.com
expected-hostnamegithub.com
None002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730
turbo-cache-controlno-cache
go-importgithub.com/coder/websocket git https://github.com/coder/websocket.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id144590177
octolytics-dimension-repository_nwocoder/websocket
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id144590177
octolytics-dimension-repository_network_root_nwocoder/websocket
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release059f24c781e3a0d7df3f27a97da0e93fab06ae39
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/coder/websocket/pull/532#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fwebsocket%2Fpull%2F532
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fwebsocket%2Fpull%2F532
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=coder%2Fwebsocket
Reloadhttps://github.com/coder/websocket/pull/532
Reloadhttps://github.com/coder/websocket/pull/532
Reloadhttps://github.com/coder/websocket/pull/532
coderhttps://github.com/coder
websockethttps://github.com/coder/websocket
Codehttps://github.com/coder/websocket
Issues59 (59)https://github.com/coder/websocket/issues
Pull requests27 (27)https://github.com/coder/websocket/pulls
Actionshttps://github.com/coder/websocket/actions
Security and qualityhttps://github.com/coder/websocket/security
Insightshttps://github.com/coder/websocket/insights
https://github.com/coder/websocket
mafredrihttps://github.com/mafredri
coder:masterhttps://github.com/coder/websocket/tree/master
ash2k:no-timeout-goroutinehttps://github.com/ash2k/websocket/tree/no-timeout-goroutine
Conversationhttps://github.com/coder/websocket/pull/532
Commits1 (1)https://github.com/coder/websocket/pull/532/commits
Checkshttps://github.com/coder/websocket/pull/532/checks
Files changedhttps://github.com/coder/websocket/pull/532/files
Use context.AfterFunc() instead of a goroutine to track timeoutshttps://github.com/coder/websocket/pull/532#top
mafredrihttps://github.com/mafredri
coder:masterhttps://github.com/coder/websocket/tree/master
ash2k:no-timeout-goroutinehttps://github.com/ash2k/websocket/tree/no-timeout-goroutine
https://github.com/ash2k
ash2khttps://github.com/ash2k
Aug 1, 2025https://github.com/coder/websocket/pull/532#issue-3282111195
Please reload this pagehttps://github.com/coder/websocket/pull/532
#501https://github.com/coder/websocket/pull/501
#411https://github.com/coder/websocket/issues/411
#501https://github.com/coder/websocket/pull/501
Please reload this pagehttps://github.com/coder/websocket/pull/532
https://github.com/ash2k
ash2khttps://github.com/ash2k
Aug 6, 2025https://github.com/coder/websocket/pull/532#issuecomment-3157421135
@mafredrihttps://github.com/mafredri
@Jacalzhttps://github.com/Jacalz
Please reload this pagehttps://github.com/coder/websocket/pull/532
https://github.com/Jacalz
Jacalzhttps://github.com/Jacalz
Aug 19, 2025 https://github.com/coder/websocket/pull/532#pullrequestreview-3131447652
View reviewed changes https://github.com/coder/websocket/pull/532/files
Jacalzhttps://github.com/Jacalz
https://github.com/coder/websocket/pull/532#pullrequestreview-3131447652
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/websocket/pull/532
https://github.com/mafredri
mafredrihttps://github.com/mafredri
September 1, 2025 12:06https://github.com/coder/websocket/pull/532#event-19440903011
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Sep 1, 2025https://github.com/coder/websocket/pull/532#event-19443289831
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Sep 3, 2025 https://github.com/coder/websocket/pull/532#pullrequestreview-3180615859
View reviewed changes https://github.com/coder/websocket/pull/532/files
mafredrihttps://github.com/mafredri
https://github.com/coder/websocket/pull/532#pullrequestreview-3180615859
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/websocket/pull/532
conn.gohttps://github.com/coder/websocket/pull/532/files#diff-4f427d2b022907c552328e63f137561f6de92396d7a6e8f6c2ea1bcf0db52654
Please reload this pagehttps://github.com/coder/websocket/pull/532
conn.gohttps://github.com/coder/websocket/pull/532/files#diff-4f427d2b022907c552328e63f137561f6de92396d7a6e8f6c2ea1bcf0db52654
Please reload this pagehttps://github.com/coder/websocket/pull/532
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Sep 4, 2025 https://github.com/coder/websocket/pull/532#pullrequestreview-3184216240
View reviewed changes https://github.com/coder/websocket/pull/532/files
conn.gohttps://github.com/coder/websocket/pull/532/files#diff-4f427d2b022907c552328e63f137561f6de92396d7a6e8f6c2ea1bcf0db52654
Please reload this pagehttps://github.com/coder/websocket/pull/532
read.gohttps://github.com/coder/websocket/pull/532/files#diff-2afeb2e02182ad5bb61e988b290013cdc0e5dd12981568a89dec415caafab361
Please reload this pagehttps://github.com/coder/websocket/pull/532
write.gohttps://github.com/coder/websocket/pull/532/files#diff-0965f1fa88ac40fcfc62a7eb27c953cf287c8d9a10e80f5d6e84aeb165322594
Please reload this pagehttps://github.com/coder/websocket/pull/532
https://github.com/ash2k
Use context.AfterFunc() instead of a goroutine to track timeoutshttps://github.com/coder/websocket/pull/532/commits/05e7b4b18e00e93dd2fe93069412599cbfb9bd84
05e7b4bhttps://github.com/coder/websocket/pull/532/commits/05e7b4b18e00e93dd2fe93069412599cbfb9bd84
https://github.com/ash2k
ash2khttps://github.com/ash2k
force-pushedhttps://github.com/coder/websocket/compare/1c2984a6f9dc2ac7cca11e7734d436258d2b630d..05e7b4b18e00e93dd2fe93069412599cbfb9bd84
1c2984ahttps://github.com/coder/websocket/commit/1c2984a6f9dc2ac7cca11e7734d436258d2b630d
05e7b4bhttps://github.com/coder/websocket/commit/05e7b4b18e00e93dd2fe93069412599cbfb9bd84
Compare https://github.com/coder/websocket/compare/1c2984a6f9dc2ac7cca11e7734d436258d2b630d..05e7b4b18e00e93dd2fe93069412599cbfb9bd84
September 4, 2025 10:18https://github.com/coder/websocket/pull/532#event-19500737158
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Sep 4, 2025 https://github.com/coder/websocket/pull/532#pullrequestreview-3184486066
View reviewed changes https://github.com/coder/websocket/pull/532/files/05e7b4b18e00e93dd2fe93069412599cbfb9bd84
mafredrihttps://github.com/mafredri
https://github.com/coder/websocket/pull/532#pullrequestreview-3184486066
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/websocket/pull/532
https://github.com/mafredri
mafredrihttps://github.com/mafredri
c7846eahttps://github.com/coder/websocket/commit/c7846ea6a8849fe21aed3b8319bac906e8cb1dca
Sep 4, 2025https://github.com/coder/websocket/pull/532#event-19501101277
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Sep 4, 2025 https://github.com/coder/websocket/pull/532#ref-pullrequest-2655082502
abolish an extra goroutine #501 https://github.com/coder/websocket/pull/501
https://github.com/ash2k
ash2khttps://github.com/ash2k
Sep 4, 2025https://github.com/coder/websocket/pull/532#issuecomment-3253182340
Please reload this pagehttps://github.com/coder/websocket/pull/532
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Sep 6, 2025https://github.com/coder/websocket/pull/532#issuecomment-3261646287
@ash2khttps://github.com/ash2k
v1.8.14https://github.com/coder/websocket/releases/v1.8.14
Please reload this pagehttps://github.com/coder/websocket/pull/532
https://github.com/costela
costelahttps://github.com/costela
Sep 9, 2025 https://github.com/coder/websocket/pull/532#ref-pullrequest-3399561275
chore(docs): remove mention of extra goroutine #537 https://github.com/coder/websocket/pull/537
https://github.co/hiddenchars
https://github.com/coder/websocket/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fwebsocket%2Fpull%2F532
https://github.com/mafredri
mafredri https://github.com/mafredri
https://github.com/coder/websocket/pull/532/files/05e7b4b18e00e93dd2fe93069412599cbfb9bd84
https://github.com/Jacalz
Jacalz https://github.com/Jacalz
https://github.com/coder/websocket/pull/532/files/1c2984a6f9dc2ac7cca11e7734d436258d2b630d
Please reload this pagehttps://github.com/coder/websocket/pull/532
https://github.com/mafredri
mafredri https://github.com/mafredri
Use context.AfterFunc to remove extra goroutine per connection used for context cancellation https://github.com/coder/websocket/issues/411
Please reload this pagehttps://github.com/coder/websocket/pull/532
https://github.com/ash2k
https://github.com/mafredri
https://github.com/Jacalz
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.