René's URL Explorer Experiment


Title: fix(net): aiohttp header-read timeout + mutable-header poisoning + atomic wifi_busy by jnuyens · Pull Request #179 · MicroPythonOS/MicroPythonOS · GitHub

Open Graph Title: fix(net): aiohttp header-read timeout + mutable-header poisoning + atomic wifi_busy by jnuyens · Pull Request #179 · MicroPythonOS/MicroPythonOS

X Title: fix(net): aiohttp header-read timeout + mutable-header poisoning + atomic wifi_busy by jnuyens · Pull Request #179 · MicroPythonOS/MicroPythonOS

Description: A small batch of networking robustness fixes (maintainer shortlist). 1. aiohttp: stalled server can hang the loop/UI forever _request's timeout covered only DNS+connect; the status-line and response-header readline() reads were unbounded. A server that accepts the connection then stalls before/while sending headers froze the asyncio event loop (and the LVGL UI) forever. The header read is now wrapped in the same wait_for(timeout). Body reads remain the caller's responsibility (DownloadManager already bounds per-chunk reads). 2. aiohttp: mutable-default headers={} poisoning The four headers={} default parameters are now headers=None, and request_raw copies the dict before mutating it (Host/Content-Type/Content-Length) — so a caller-shared headers dict can no longer be poisoned across requests. 3. WifiService: wifi_busy check-then-set race auto_connect() and temporarily_disable() each tested wifi_busy then set it in separate statements. Two threads (boot auto-connect + the WiFi app) could both see wifi_busy=False and proceed → double-connect. Added a _busy_lock + _acquire_busy() helper that does the check-and-set atomically, used at both sites. Testing (macOS sim) New stall test: with a server that connects but never sends headers, _request(timeout=1) now raises TimeoutError at ~1.0s instead of hanging (verified old path would hang). Header isolation: two ClientSessions with different default headers stay isolated. Existing suites: test_websocket OK, test_async_dns OK, test_wifi_service 46/46 OK. mpy-cross compiles both files on this branch's base; ASCII-only. Independent of #177 (touches different regions of aiohttp/__init__.py).

Open Graph Description: A small batch of networking robustness fixes (maintainer shortlist). 1. aiohttp: stalled server can hang the loop/UI forever _request's timeout covered only DNS+connect; the status-line and res...

X Description: A small batch of networking robustness fixes (maintainer shortlist). 1. aiohttp: stalled server can hang the loop/UI forever _request's timeout covered only DNS+connect; the status-line and...

Opengraph URL: https://github.com/MicroPythonOS/MicroPythonOS/pull/179

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:aa967e5a-62c1-9429-e1d1-a72d0f698e26
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDC90:1F19:86C17A4:BF438F7:6A510F21
html-safe-nonce87f72caacfb9f1a5d15088d46adcd02b816866e8d9e7d652d23dbfa5e0621de7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzkwOjFGMTk6ODZDMTdBNDpCRjQzOEY3OjZBNTEwRjIxIiwidmlzaXRvcl9pZCI6IjU4NTg2MjEwMjQ5MDYxNTU4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac319ab37e8e118506deb838991078c5710d68cc2aca4cc04a5e745c3158537dad
hovercard-subject-tagpull_request:3951834518
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files
twitter:imagehttps://avatars.githubusercontent.com/u/3696148?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3696148?s=400&v=4
og:image:altA small batch of networking robustness fixes (maintainer shortlist). 1. aiohttp: stalled server can hang the loop/UI forever _request's timeout covered only DNS+connect; the status-line and res...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb076e100febaa00374cd89239f915d00dd3187f7c68b12bc2b7688181305344d
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/MicroPythonOS/MicroPythonOS git https://github.com/MicroPythonOS/MicroPythonOS.git
octolytics-dimension-user_id213598128
octolytics-dimension-user_loginMicroPythonOS
octolytics-dimension-repository_id975472483
octolytics-dimension-repository_nwoMicroPythonOS/MicroPythonOS
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id975472483
octolytics-dimension-repository_network_root_nwoMicroPythonOS/MicroPythonOS
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef9137f6d981cbbfd780af369f80ce890b2d0d2d4
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMicroPythonOS%2FMicroPythonOS%2Fpull%2F179%2Ffiles
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%2FMicroPythonOS%2FMicroPythonOS%2Fpull%2F179%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=MicroPythonOS%2FMicroPythonOS
Reloadhttps://github.com/MicroPythonOS/MicroPythonOS/pull/179/files
Reloadhttps://github.com/MicroPythonOS/MicroPythonOS/pull/179/files
Reloadhttps://github.com/MicroPythonOS/MicroPythonOS/pull/179/files
Please reload this pagehttps://github.com/MicroPythonOS/MicroPythonOS/pull/179/files
MicroPythonOS https://github.com/MicroPythonOS
MicroPythonOShttps://github.com/MicroPythonOS/MicroPythonOS
Notifications https://github.com/login?return_to=%2FMicroPythonOS%2FMicroPythonOS
Fork 82 https://github.com/login?return_to=%2FMicroPythonOS%2FMicroPythonOS
Star 737 https://github.com/login?return_to=%2FMicroPythonOS%2FMicroPythonOS
Code https://github.com/MicroPythonOS/MicroPythonOS
Issues 23 https://github.com/MicroPythonOS/MicroPythonOS/issues
Pull requests 7 https://github.com/MicroPythonOS/MicroPythonOS/pulls
Discussions https://github.com/MicroPythonOS/MicroPythonOS/discussions
Actions https://github.com/MicroPythonOS/MicroPythonOS/actions
Projects https://github.com/MicroPythonOS/MicroPythonOS/projects
Security and quality 0 https://github.com/MicroPythonOS/MicroPythonOS/security
Insights https://github.com/MicroPythonOS/MicroPythonOS/pulse
Code https://github.com/MicroPythonOS/MicroPythonOS
Issues https://github.com/MicroPythonOS/MicroPythonOS/issues
Pull requests https://github.com/MicroPythonOS/MicroPythonOS/pulls
Discussions https://github.com/MicroPythonOS/MicroPythonOS/discussions
Actions https://github.com/MicroPythonOS/MicroPythonOS/actions
Projects https://github.com/MicroPythonOS/MicroPythonOS/projects
Security and quality https://github.com/MicroPythonOS/MicroPythonOS/security
Insights https://github.com/MicroPythonOS/MicroPythonOS/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FMicroPythonOS%2FMicroPythonOS%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FMicroPythonOS%2FMicroPythonOS%2Fissues%2Fnew%2Fchoose
ThomasFarstrikehttps://github.com/ThomasFarstrike
MicroPythonOS:mainhttps://github.com/MicroPythonOS/MicroPythonOS/tree/main
jnuyens:net-hardeninghttps://github.com/jnuyens/MicroPythonOS/tree/net-hardening
Conversation 1 https://github.com/MicroPythonOS/MicroPythonOS/pull/179
Commits 2 https://github.com/MicroPythonOS/MicroPythonOS/pull/179/commits
Checks 6 https://github.com/MicroPythonOS/MicroPythonOS/pull/179/checks
Files changed https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files
Please reload this pagehttps://github.com/MicroPythonOS/MicroPythonOS/pull/179/files
fix(net): aiohttp header-read timeout + mutable-header poisoning + atomic wifi_busy https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#top
Show all changes 2 commits https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files
b1db6f6 fix(net): bound aiohttp header reads by timeout + stop mutable-defaul… jnuyens Jun 28, 2026 https://github.com/MicroPythonOS/MicroPythonOS/pull/179/commits/b1db6f69910bb9401b05456ad2e54efd6fa5a522
9adf424 fix(net): make WifiService.wifi_busy check-then-set atomic with a lock jnuyens Jun 28, 2026 https://github.com/MicroPythonOS/MicroPythonOS/pull/179/commits/9adf424615980c788a70b1153084b65ed73dc617
Clear filters https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files
Please reload this pagehttps://github.com/MicroPythonOS/MicroPythonOS/pull/179/files
Please reload this pagehttps://github.com/MicroPythonOS/MicroPythonOS/pull/179/files
__init__.py https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-f03e4b1130b6809b1146395dbde1691b0ee4cc62be76b75ccfc8435654414dcc
wifi_service.py https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-376036249f2784dc4b12364d0def1d5ac56b08df41173386765993715c910def
internal_filesystem/lib/aiohttp/__init__.pyhttps://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-f03e4b1130b6809b1146395dbde1691b0ee4cc62be76b75ccfc8435654414dcc
View file https://github.com/jnuyens/MicroPythonOS/blob/9adf424615980c788a70b1153084b65ed73dc617/internal_filesystem/lib/aiohttp/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/{{ revealButtonHref }}
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-f03e4b1130b6809b1146395dbde1691b0ee4cc62be76b75ccfc8435654414dcc
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-f03e4b1130b6809b1146395dbde1691b0ee4cc62be76b75ccfc8435654414dcc
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-f03e4b1130b6809b1146395dbde1691b0ee4cc62be76b75ccfc8435654414dcc
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-f03e4b1130b6809b1146395dbde1691b0ee4cc62be76b75ccfc8435654414dcc
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-f03e4b1130b6809b1146395dbde1691b0ee4cc62be76b75ccfc8435654414dcc
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-f03e4b1130b6809b1146395dbde1691b0ee4cc62be76b75ccfc8435654414dcc
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-f03e4b1130b6809b1146395dbde1691b0ee4cc62be76b75ccfc8435654414dcc
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-f03e4b1130b6809b1146395dbde1691b0ee4cc62be76b75ccfc8435654414dcc
internal_filesystem/lib/mpos/net/wifi_service.pyhttps://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-376036249f2784dc4b12364d0def1d5ac56b08df41173386765993715c910def
View file https://github.com/jnuyens/MicroPythonOS/blob/9adf424615980c788a70b1153084b65ed73dc617/internal_filesystem/lib/mpos/net/wifi_service.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/{{ revealButtonHref }}
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-376036249f2784dc4b12364d0def1d5ac56b08df41173386765993715c910def
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-376036249f2784dc4b12364d0def1d5ac56b08df41173386765993715c910def
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-376036249f2784dc4b12364d0def1d5ac56b08df41173386765993715c910def
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-376036249f2784dc4b12364d0def1d5ac56b08df41173386765993715c910def
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-376036249f2784dc4b12364d0def1d5ac56b08df41173386765993715c910def
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-376036249f2784dc4b12364d0def1d5ac56b08df41173386765993715c910def
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-376036249f2784dc4b12364d0def1d5ac56b08df41173386765993715c910def
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-376036249f2784dc4b12364d0def1d5ac56b08df41173386765993715c910def
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-376036249f2784dc4b12364d0def1d5ac56b08df41173386765993715c910def
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-376036249f2784dc4b12364d0def1d5ac56b08df41173386765993715c910def
https://github.com/MicroPythonOS/MicroPythonOS/pull/179/files#diff-376036249f2784dc4b12364d0def1d5ac56b08df41173386765993715c910def
Please reload this pagehttps://github.com/MicroPythonOS/MicroPythonOS/pull/179/files
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.