René's URL Explorer Experiment


Title: Closing connection using TLS · Issue #320 · reactphp/socket · GitHub

Open Graph Title: Closing connection using TLS · Issue #320 · reactphp/socket

X Title: Closing connection using TLS · Issue #320 · reactphp/socket

Description: When closing a connection on a server using TLS, eg: 'server.pem...

Open Graph Description: When closing a connection on a server using TLS, eg:

X Description: When closing a connection on a server using TLS, eg: <?php require __DIR__ . '/vendor/autoload.php'; $server = new React\Socket\TcpServer($port = 9900); $server = new React\Socket\Secure...

Opengraph URL: https://github.com/reactphp/socket/issues/320

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Closing connection using TLS","articleBody":"\u003c!-- Add enough information so we can understand your problem -->\n\nWhen closing a connection on a server using TLS, eg:\n```php\n\u003c?php\n\nrequire __DIR__ . '/vendor/autoload.php';\n\n$server = new React\\Socket\\TcpServer($port = 9900);\n$server = new React\\Socket\\SecureServer($server, null, [\n    'local_cert' => 'server.pem',\n    'passphrase' => 'secret'\n]);\n\n$server->on('connection', function (React\\Socket\\ConnectionInterface $connection) {\n    echo '[' . $connection->getRemoteAddress() . ' connected]' . PHP_EOL;\n\n    // do stuff\n    \n    $connection->end();\n});\n```\n\nthe connection is not closed properly, as https://github.com/reactphp/socket/blob/e04478a14b22c2f85697b917dcc26fa8f1654098/src/Connection.php#L123-L133\nuses https://www.php.net/manual/en/function.stream-socket-shutdown.php.\n\nNote comment https://www.php.net/manual/en/function.stream-socket-shutdown.php#125659 which states tls does not get shut down properly that way.\n\nSolution seems to be to replace `@\\stream_socket_shutdown($this->stream, \\STREAM_SHUT_RDWR); ` with `\\fclose($this->stream)`.\n\nOther solution seems to be to call `@\\stream_socket_enable_crypto($this->stream, false);` before the socket shutdown as mentioned in comment https://www.php.net/manual/en/function.stream-socket-shutdown.php#126303","author":{"url":"https://github.com/dododedodonl","@type":"Person","name":"dododedodonl"},"datePublished":"2025-02-18T01:13:54Z","url":"https://github.com/reactphp/socket/issues/320"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:021436b7-81a8-bf2f-5638-f946c3ee39f4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCC56:12476C:26AFDCD:332DB73:6B00575B
html-safe-nonce2f241aa9e20e9c187295775c0cabfc747a1be8f08d24c870649e9aa4daad929c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzU2OjEyNDc2QzoyNkFGRENEOjMzMkRCNzM6NkIwMDU3NUIiLCJ2aXNpdG9yX2lkIjoiNzU2NzI5Nzc5OTY3MTI3MzMwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac399ca6d8f147bf9e7fb585cba8b49a567354936d007407349af9e516da369c82
hovercard-subject-tagissue:2859069996
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/reactphp/socket/320/issue_layout
twitter:imagehttps://opengraph.githubassets.com/eae0e4fe9d278673aa6b96fdf1e5712414cb013a4769d8f9d5356718af19054e/reactphp/socket/issues/320
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/eae0e4fe9d278673aa6b96fdf1e5712414cb013a4769d8f9d5356718af19054e/reactphp/socket/issues/320
og:image:altWhen closing a connection on a server using TLS, eg:
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedododedodonl
hostnamegithub.com
expected-hostnamegithub.com
Nonef420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb
turbo-cache-controlno-preview
go-importgithub.com/reactphp/socket git https://github.com/reactphp/socket.git
octolytics-dimension-user_id1696866
octolytics-dimension-user_loginreactphp
octolytics-dimension-repository_id4287591
octolytics-dimension-repository_nworeactphp/socket
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id4287591
octolytics-dimension-repository_network_root_nworeactphp/socket
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
release26e00df917aba0f128135dc073ea0c5e33a70d40
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/reactphp/socket/issues/320#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Freactphp%2Fsocket%2Fissues%2F320
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%2Freactphp%2Fsocket%2Fissues%2F320
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=reactphp%2Fsocket
Reloadhttps://github.com/reactphp/socket/issues/320
Reloadhttps://github.com/reactphp/socket/issues/320
Reloadhttps://github.com/reactphp/socket/issues/320
reactphphttps://github.com/reactphp
sockethttps://github.com/reactphp/socket
Codehttps://github.com/reactphp/socket
Issues7 (7)https://github.com/reactphp/socket/issues
Pull requests9 (9)https://github.com/reactphp/socket/pulls
Actionshttps://github.com/reactphp/socket/actions
Security and qualityhttps://github.com/reactphp/socket/security
Insightshttps://github.com/reactphp/socket/insights
https://github.com/reactphp/socket
New issuehttps://github.com/login?return_to=https://github.com/reactphp/socket/issues/320
New issuehttps://github.com/login?return_to=https://github.com/reactphp/socket/issues/320
Closing connection using TLShttps://github.com/reactphp/socket/issues/320#top
bughttps://github.com/reactphp/socket/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/dododedodonl
dododedodonlhttps://github.com/dododedodonl
on Feb 18, 2025https://github.com/reactphp/socket/issues/320#issue-2859069996
socket/src/Connection.phphttps://github.com/reactphp/socket/blob/e04478a14b22c2f85697b917dcc26fa8f1654098/src/Connection.php#L123-L133
e04478ahttps://github.com/reactphp/socket/commit/e04478a14b22c2f85697b917dcc26fa8f1654098
https://www.php.net/manual/en/function.stream-socket-shutdown.phphttps://www.php.net/manual/en/function.stream-socket-shutdown.php
https://www.php.net/manual/en/function.stream-socket-shutdown.php#125659https://www.php.net/manual/en/function.stream-socket-shutdown.php#125659
https://www.php.net/manual/en/function.stream-socket-shutdown.php#126303https://www.php.net/manual/en/function.stream-socket-shutdown.php#126303
dododedodonlhttps://github.com/dododedodonl
bughttps://github.com/reactphp/socket/issues?q=state%3Aopen%20label%3A%22bug%22
on Feb 18, 2025https://github.com/reactphp/socket/issues/320#event-16340464213
https://github.com/clue
cluehttps://github.com/clue
on Feb 18, 2025https://github.com/reactphp/socket/issues/320#issuecomment-2664902925
https://github.com/dododedodonl
dododedodonlhttps://github.com/dododedodonl
on Feb 18, 2025https://github.com/reactphp/socket/issues/320#issuecomment-2665086120
socket/src/Connection.phphttps://github.com/reactphp/socket/blob/e04478a14b22c2f85697b917dcc26fa8f1654098/src/Connection.php#L123-L133
e04478ahttps://github.com/reactphp/socket/commit/e04478a14b22c2f85697b917dcc26fa8f1654098
https://github.com/clue
cluehttps://github.com/clue
on Feb 18, 2025https://github.com/reactphp/socket/issues/320#issuecomment-2665107727
https://github.com/dododedodonl
dododedodonlhttps://github.com/dododedodonl
on Feb 18, 2025https://github.com/reactphp/socket/issues/320#issuecomment-2665123005
Sign up for freehttps://github.com/signup?return_to=https://github.com/reactphp/socket/issues/320
Sign in to commenthttps://github.com/login?return_to=https://github.com/reactphp/socket/issues/320
bughttps://github.com/reactphp/socket/issues?q=state%3Aopen%20label%3A%22bug%22
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

Viewport: width=device-width


URLs of crawlers that visited me.