René's URL Explorer Experiment


Title: Fix DownloadManager hanging on stalled connections by bitcoin3us · Pull Request #98 · MicroPythonOS/MicroPythonOS · GitHub

Open Graph Title: Fix DownloadManager hanging on stalled connections by bitcoin3us · Pull Request #98 · MicroPythonOS/MicroPythonOS

X Title: Fix DownloadManager hanging on stalled connections by bitcoin3us · Pull Request #98 · MicroPythonOS/MicroPythonOS

Description: Summary Added connection timeout to session.get() in DownloadManager._download_url_async() Previously only individual chunk reads had a timeout (_CHUNK_TIMEOUT_SECONDS), but the initial TCP/TLS connection had none On ESP32 devices with intermittent WiFi, a stalled connection would hang the entire async balance fetch loop forever, freezing the wallet UI Root cause session.get(url, headers=headers) at line 118 of download_manager.py had no timeout parameter. If the TLS handshake or TCP connection stalled, this await would never return, blocking the calling coroutine permanently. Fix Pass the existing _CHUNK_TIMEOUT_SECONDS (10s) as the timeout for session.get(), so stalled connections fail gracefully and the caller's retry logic can recover. Test plan Verify normal downloads still work (balance fetch, payments fetch) Verify that a stalled connection times out after 10s instead of hanging Verify the wallet recovers on the next fetch cycle after a timeout 🤖 Generated with Claude Code

Open Graph Description: Summary Added connection timeout to session.get() in DownloadManager._download_url_async() Previously only individual chunk reads had a timeout (_CHUNK_TIMEOUT_SECONDS), but the initial TCP/TLS co...

X Description: Summary Added connection timeout to session.get() in DownloadManager._download_url_async() Previously only individual chunk reads had a timeout (_CHUNK_TIMEOUT_SECONDS), but the initial TCP/TLS co...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:762a1e3a-aae9-f1ae-72e5-6e99fd607f5b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBBCE:2C9FC7:28F0DAE:37092ED:6A53A678
html-safe-nonced9dc06e1686cbe6adf0b2f9da1b12c7113fb0d37797cc5daa42bab2ea2be9e6e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkNFOjJDOUZDNzoyOEYwREFFOjM3MDkyRUQ6NkE1M0E2NzgiLCJ2aXNpdG9yX2lkIjoiNzQ4OTM0Mjc1MTY2ODE1MTkyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace08f606da299638e09d262064de1fa5ce6761af2d86212b9ff2c681eca4441fb
hovercard-subject-tagpull_request:3462104264
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/98/files
twitter:imagehttps://avatars.githubusercontent.com/u/115934595?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/115934595?s=400&v=4
og:image:altSummary Added connection timeout to session.get() in DownloadManager._download_url_async() Previously only individual chunk reads had a timeout (_CHUNK_TIMEOUT_SECONDS), but the initial TCP/TLS co...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
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
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/MicroPythonOS/MicroPythonOS/pull/98/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMicroPythonOS%2FMicroPythonOS%2Fpull%2F98%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%2F98%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/98/files
Reloadhttps://github.com/MicroPythonOS/MicroPythonOS/pull/98/files
Reloadhttps://github.com/MicroPythonOS/MicroPythonOS/pull/98/files
Please reload this pagehttps://github.com/MicroPythonOS/MicroPythonOS/pull/98/files
MicroPythonOS https://github.com/MicroPythonOS
MicroPythonOShttps://github.com/MicroPythonOS/MicroPythonOS
Notifications https://github.com/login?return_to=%2FMicroPythonOS%2FMicroPythonOS
Fork 84 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
bitcoin3us:fix/download-manager-connection-timeouthttps://github.com/bitcoin3us/MicroPythonOS/tree/fix/download-manager-connection-timeout
Conversation 1 https://github.com/MicroPythonOS/MicroPythonOS/pull/98
Commits 1 https://github.com/MicroPythonOS/MicroPythonOS/pull/98/commits
Checks 4 https://github.com/MicroPythonOS/MicroPythonOS/pull/98/checks
Files changed https://github.com/MicroPythonOS/MicroPythonOS/pull/98/files
Please reload this pagehttps://github.com/MicroPythonOS/MicroPythonOS/pull/98/files
Fix DownloadManager hanging on stalled connections https://github.com/MicroPythonOS/MicroPythonOS/pull/98/files#top
Show all changes 1 commit https://github.com/MicroPythonOS/MicroPythonOS/pull/98/files
81a907c Add connection timeout to DownloadManager session.get() Mar 29, 2026 https://github.com/MicroPythonOS/MicroPythonOS/pull/98/commits/81a907c08f6e169613c258eb89220d2a5a67123a
Clear filters https://github.com/MicroPythonOS/MicroPythonOS/pull/98/files
Please reload this pagehttps://github.com/MicroPythonOS/MicroPythonOS/pull/98/files
Please reload this pagehttps://github.com/MicroPythonOS/MicroPythonOS/pull/98/files
internal_filesystem/lib/mpos/net/download_manager.pyhttps://github.com/MicroPythonOS/MicroPythonOS/pull/98/files#diff-48f17697c181e014409ed7247cb919263456afb690f1f7f1457d6bd7ac5546fd
View file https://github.com/bitcoin3us/MicroPythonOS/blob/81a907c08f6e169613c258eb89220d2a5a67123a/internal_filesystem/lib/mpos/net/download_manager.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/MicroPythonOS/MicroPythonOS/pull/98/{{ revealButtonHref }}
https://github.com/MicroPythonOS/MicroPythonOS/pull/98/files#diff-48f17697c181e014409ed7247cb919263456afb690f1f7f1457d6bd7ac5546fd
https://github.com/MicroPythonOS/MicroPythonOS/pull/98/files#diff-48f17697c181e014409ed7247cb919263456afb690f1f7f1457d6bd7ac5546fd
Please reload this pagehttps://github.com/MicroPythonOS/MicroPythonOS/pull/98/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.