René's URL Explorer Experiment


Title: Fix SSL read over-consuming TCP data and ZeroReturn handling by youknowone · Pull Request #7418 · RustPython/RustPython · GitHub

Open Graph Title: Fix SSL read over-consuming TCP data and ZeroReturn handling by youknowone · Pull Request #7418 · RustPython/RustPython

X Title: Fix SSL read over-consuming TCP data and ZeroReturn handling by youknowone · Pull Request #7418 · RustPython/RustPython

Description: A Python Interpreter written in Rust. Contribute to RustPython/RustPython development by creating an account on GitHub.

Open Graph Description: Use single-record reading (recv_one_tls_record) for all SSL reads, not just handshake. This prevents rustls from eagerly consuming close_notify alongside application data, which left the TCP buffer...

X Description: Use single-record reading (recv_one_tls_record) for all SSL reads, not just handshake. This prevents rustls from eagerly consuming close_notify alongside application data, which left the TCP buffer...

Opengraph URL: https://github.com/RustPython/RustPython/pull/7418

X: @github

direct link

Domain: github.com

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:791b8973-5491-3c71-1903-8a5abb750dbb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA2BA:3F5ED:1713105:1E60656:6A5C6C48
html-safe-noncec3f6adf58f6614af82ab615617e138d35fa5d53527518da01afcd2c9a347d333
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkJBOjNGNUVEOjE3MTMxMDU6MUU2MDY1Njo2QTVDNkM0OCIsInZpc2l0b3JfaWQiOiI3NTk3Njc2MzY1MzM4MTQzODE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac2c99b773f26939814995dfeba1c4dad80b147c9560716df0dc63b30031a58d0a
hovercard-subject-tagpull_request:3392892722
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/RustPython/RustPython/7418/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/fff6fa38ee5f45a2e56a860225104cf56a65b6c21db90f424082e67926e2b814/RustPython/RustPython/pull/7418
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fff6fa38ee5f45a2e56a860225104cf56a65b6c21db90f424082e67926e2b814/RustPython/RustPython/pull/7418
og:image:altUse single-record reading (recv_one_tls_record) for all SSL reads, not just handshake. This prevents rustls from eagerly consuming close_notify alongside application data, which left the TCP buffer...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameyouknowone
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-cache
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
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
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/7418#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F7418
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F7418
Sign up https://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=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/7418
Reloadhttps://github.com/RustPython/RustPython/pull/7418
Reloadhttps://github.com/RustPython/RustPython/pull/7418
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7418
RustPython https://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Notifications https://github.com/login?return_to=%2FRustPython%2FRustPython
Fork 1.5k https://github.com/login?return_to=%2FRustPython%2FRustPython
Star 22.2k https://github.com/login?return_to=%2FRustPython%2FRustPython
Code https://github.com/RustPython/RustPython
Issues 290 https://github.com/RustPython/RustPython/issues
Pull requests 100 https://github.com/RustPython/RustPython/pulls
Discussions https://github.com/RustPython/RustPython/discussions
Actions https://github.com/RustPython/RustPython/actions
Projects https://github.com/RustPython/RustPython/projects
Models https://github.com/RustPython/RustPython/models
Wiki https://github.com/RustPython/RustPython/wiki
Security and quality 0 https://github.com/RustPython/RustPython/security
Insights https://github.com/RustPython/RustPython/pulse
Code https://github.com/RustPython/RustPython
Issues https://github.com/RustPython/RustPython/issues
Pull requests https://github.com/RustPython/RustPython/pulls
Discussions https://github.com/RustPython/RustPython/discussions
Actions https://github.com/RustPython/RustPython/actions
Projects https://github.com/RustPython/RustPython/projects
Models https://github.com/RustPython/RustPython/models
Wiki https://github.com/RustPython/RustPython/wiki
Security and quality https://github.com/RustPython/RustPython/security
Insights https://github.com/RustPython/RustPython/pulse
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowone:ssl-readhttps://github.com/youknowone/RustPython/tree/ssl-read
Conversationhttps://github.com/RustPython/RustPython/pull/7418
Commits1 (1)https://github.com/RustPython/RustPython/pull/7418/commits
Checkshttps://github.com/RustPython/RustPython/pull/7418/checks
Files changedhttps://github.com/RustPython/RustPython/pull/7418/files
Fix SSL read over-consuming TCP data and ZeroReturn handlinghttps://github.com/RustPython/RustPython/pull/7418#top
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowone:ssl-readhttps://github.com/youknowone/RustPython/tree/ssl-read
https://github.com/youknowone
youknowonehttps://github.com/youknowone
Mar 13, 2026https://github.com/RustPython/RustPython/pull/7418#issue-4068509407
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7418
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7418
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Mar 13, 2026https://github.com/RustPython/RustPython/pull/7418#issuecomment-4052146725
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7418
Fix install ujson #6502https://github.com/RustPython/RustPython/pull/6502
fix ssl MSG_PEEK #6892https://github.com/RustPython/RustPython/pull/6892
Fix SSL handshake over-reading in STARTTLS #7417https://github.com/RustPython/RustPython/pull/7417
CodeRabbithttps://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=RustPython/RustPython&utm_content=7418
Xhttps://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai
Mastodonhttps://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai
Reddithttps://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai
LinkedInhttps://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7418
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Mar 13, 2026https://github.com/RustPython/RustPython/pull/7418#issuecomment-4052152438
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7418
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7418
https://github.com/youknowone
youknowonehttps://github.com/youknowone
March 13, 2026 03:37https://github.com/RustPython/RustPython/pull/7418#event-23531746372
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Mar 13, 2026 https://github.com/RustPython/RustPython/pull/7418#pullrequestreview-3941446196
View reviewed changes https://github.com/RustPython/RustPython/pull/7418/files
coderabbitaihttps://github.com/apps/coderabbitai
https://github.com/RustPython/RustPython/pull/7418#pullrequestreview-3941446196
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
7c0981bhttps://github.com/RustPython/RustPython/commit/7c0981b9ce7ef0e39b8d7a240784688c2a700bfe
1d749ebhttps://github.com/RustPython/RustPython/commit/1d749eb149df1be77961e14b1286f262fec51955
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7418
https://github.com/youknowone
youknowonehttps://github.com/youknowone
force-pushedhttps://github.com/RustPython/RustPython/compare/1d749eb149df1be77961e14b1286f262fec51955..34cf3ddac722f62504d24657ce38d429c8069470
1d749ebhttps://github.com/RustPython/RustPython/commit/1d749eb149df1be77961e14b1286f262fec51955
34cf3ddhttps://github.com/RustPython/RustPython/commit/34cf3ddac722f62504d24657ce38d429c8069470
Compare https://github.com/RustPython/RustPython/compare/1d749eb149df1be77961e14b1286f262fec51955..34cf3ddac722f62504d24657ce38d429c8069470
March 13, 2026 05:43https://github.com/RustPython/RustPython/pull/7418#event-23534030074
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Mar 13, 2026 https://github.com/RustPython/RustPython/pull/7418#pullrequestreview-3941835621
View reviewed changes https://github.com/RustPython/RustPython/pull/7418/files
coderabbitaihttps://github.com/apps/coderabbitai
https://github.com/RustPython/RustPython/pull/7418#pullrequestreview-3941835621
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
1d749ebhttps://github.com/RustPython/RustPython/commit/1d749eb149df1be77961e14b1286f262fec51955
34cf3ddhttps://github.com/RustPython/RustPython/commit/34cf3ddac722f62504d24657ce38d429c8069470
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7418
https://github.com/youknowone
Fix SSL read over-consuming TCP datahttps://github.com/RustPython/RustPython/pull/7418/commits/89d8813db8ecd9bf5da990d0d49286d100a4b9ce
89d8813https://github.com/RustPython/RustPython/pull/7418/commits/89d8813db8ecd9bf5da990d0d49286d100a4b9ce
https://github.com/youknowone
youknowonehttps://github.com/youknowone
force-pushedhttps://github.com/RustPython/RustPython/compare/34cf3ddac722f62504d24657ce38d429c8069470..89d8813db8ecd9bf5da990d0d49286d100a4b9ce
34cf3ddhttps://github.com/RustPython/RustPython/commit/34cf3ddac722f62504d24657ce38d429c8069470
89d8813https://github.com/RustPython/RustPython/commit/89d8813db8ecd9bf5da990d0d49286d100a4b9ce
Compare https://github.com/RustPython/RustPython/compare/34cf3ddac722f62504d24657ce38d429c8069470..89d8813db8ecd9bf5da990d0d49286d100a4b9ce
March 13, 2026 07:24https://github.com/RustPython/RustPython/pull/7418#event-23536161643
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Mar 13, 2026 https://github.com/RustPython/RustPython/pull/7418#pullrequestreview-3942223857
View reviewed changes https://github.com/RustPython/RustPython/pull/7418/files/89d8813db8ecd9bf5da990d0d49286d100a4b9ce
coderabbitaihttps://github.com/apps/coderabbitai
https://github.com/RustPython/RustPython/pull/7418#pullrequestreview-3942223857
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
34cf3ddhttps://github.com/RustPython/RustPython/commit/34cf3ddac722f62504d24657ce38d429c8069470
89d8813https://github.com/RustPython/RustPython/commit/89d8813db8ecd9bf5da990d0d49286d100a4b9ce
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7418
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Mar 13, 2026 https://github.com/RustPython/RustPython/pull/7418#pullrequestreview-3942589883
View reviewed changes https://github.com/RustPython/RustPython/pull/7418/files
coderabbitaihttps://github.com/apps/coderabbitai
https://github.com/RustPython/RustPython/pull/7418#pullrequestreview-3942589883
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
89d8813https://github.com/RustPython/RustPython/commit/89d8813db8ecd9bf5da990d0d49286d100a4b9ce
0de09fehttps://github.com/RustPython/RustPython/commit/0de09fe4b3e66337522f8bee546ec31b7e7b95f2
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7418
crates/stdlib/src/ssl.rshttps://github.com/RustPython/RustPython/pull/7418/files#diff-454ec133e37f245b8eb2dfcd83daf62e341eb3ab03b353d30297ae029e73213b
coderabbitaihttps://github.com/apps/coderabbitai
Mar 13, 2026https://github.com/RustPython/RustPython/pull/7418#discussion_r2929931615
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7418
https://github.com/youknowone
youknowonehttps://github.com/youknowone
force-pushedhttps://github.com/RustPython/RustPython/compare/0de09fe4b3e66337522f8bee546ec31b7e7b95f2..89d8813db8ecd9bf5da990d0d49286d100a4b9ce
0de09fehttps://github.com/RustPython/RustPython/commit/0de09fe4b3e66337522f8bee546ec31b7e7b95f2
89d8813https://github.com/RustPython/RustPython/commit/89d8813db8ecd9bf5da990d0d49286d100a4b9ce
Compare https://github.com/RustPython/RustPython/compare/0de09fe4b3e66337522f8bee546ec31b7e7b95f2..89d8813db8ecd9bf5da990d0d49286d100a4b9ce
March 13, 2026 10:52https://github.com/RustPython/RustPython/pull/7418#event-23541598941
https://github.com/youknowone
youknowonehttps://github.com/youknowone
073adbdhttps://github.com/RustPython/RustPython/commit/073adbd8da244b6203e8f32009b905af390c1a3d
Mar 13, 2026https://github.com/RustPython/RustPython/pull/7418#event-23543619704
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7418
https://github.com/youknowone
youknowonehttps://github.com/youknowone
March 13, 2026 12:02https://github.com/RustPython/RustPython/pull/7418#event-23543620572
youknowonehttps://github.com/youknowone
Mar 19, 2026 https://github.com/RustPython/RustPython/pull/7418#ref-commit-471f4e3
https://github.com/youknowone
Fix SSL read over-consuming TCP data (https://github.com/youknowone/RustPython/commit/471f4e3088728429e35100a98fab3f78a7d265ca
RustPython#7418https://github.com/RustPython/RustPython/pull/7418
)https://github.com/youknowone/RustPython/commit/471f4e3088728429e35100a98fab3f78a7d265ca
471f4e3https://github.com/youknowone/RustPython/commit/471f4e3088728429e35100a98fab3f78a7d265ca
youknowonehttps://github.com/youknowone
Mar 22, 2026 https://github.com/RustPython/RustPython/pull/7418#ref-commit-a814ca7
https://github.com/youknowone
Fix SSL read over-consuming TCP data (https://github.com/youknowone/RustPython/commit/a814ca774b69df7d377238b0a92c6188d44fd9ff
RustPython#7418https://github.com/RustPython/RustPython/pull/7418
)https://github.com/youknowone/RustPython/commit/a814ca774b69df7d377238b0a92c6188d44fd9ff
a814ca7https://github.com/youknowone/RustPython/commit/a814ca774b69df7d377238b0a92c6188d44fd9ff
https://github.com/im-0
im-0https://github.com/im-0
May 17, 2026 https://github.com/RustPython/RustPython/pull/7418#ref-issue-4462709354
urlopen() hangs and eats 100% CPU on some https urls (git bisect found problematic commit) #7891 https://github.com/RustPython/RustPython/issues/7891
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/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%2FRustPython%2FRustPython%2Fpull%2F7418
https://github.com/apps/coderabbitai
coderabbitai[bot] https://github.com/apps/coderabbitai
https://github.com/RustPython/RustPython/pull/7418/files/0de09fe4b3e66337522f8bee546ec31b7e7b95f2
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7418
https://github.com/youknowone
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.