René's URL Explorer Experiment


Title: fix(net): wait_until_online() never actually waits (always-truthy bug) by jnuyens · Pull Request #176 · MicroPythonOS/MicroPythonOS · GitHub

Open Graph Title: fix(net): wait_until_online() never actually waits (always-truthy bug) by jnuyens · Pull Request #176 · MicroPythonOS/MicroPythonOS

X Title: fix(net): wait_until_online() never actually waits (always-truthy bug) by jnuyens · Pull Request #176 · MicroPythonOS/MicroPythonOS

Description: Summary ConnectivityManager.wait_until_online() has a bug that makes it return True immediately even when the device is offline, so it never actually waits. def wait_until_online(self, timeout=60): if not self.can_check_network: return True start = time.time() while time.time() - start < timeout: if self.is_online: # <-- bug: is_online is a METHOD return True time.sleep(1) return False is_online is a method (def is_online(self): return self._is_online), so if self.is_online: tests a bound-method object, which is always truthy. The loop returns True on its first iteration regardless of actual connectivity. Fix Call the method: if self.is_online(): return True One-line change. Any caller relying on wait_until_online() to block until connectivity is restored now behaves correctly. Test Added an offline regression test to the existing TestConnectivityManagerWaitUntilOnline class. With a disconnected mock network, wait_until_online(timeout=0.5) must return False (it returned True instantly before the fix): $ ./tests/unittest.sh tests/test_connectivity_manager.py Ran 26 tests OK ASCII-only, no new dependencies.

Open Graph Description: Summary ConnectivityManager.wait_until_online() has a bug that makes it return True immediately even when the device is offline, so it never actually waits. def wait_until_online(self, timeout=60):...

X Description: Summary ConnectivityManager.wait_until_online() has a bug that makes it return True immediately even when the device is offline, so it never actually waits. def wait_until_online(self, timeout=60):...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:42332962-f327-0aa0-0edd-c0fc0f680fcd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC262:3446C2:3B9DD4:51CFB6:6A5141A0
html-safe-nonceb2e4fc611909ced391eaf2b5c23a9b471083d921d74eb4e20cb059b514faed04
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjYyOjM0NDZDMjozQjlERDQ6NTFDRkI2OjZBNTE0MUEwIiwidmlzaXRvcl9pZCI6IjY5MDEyNjMxODA4MjA5ODgzMjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5e340432f11e2216570ed2cf44c40706871c8e4866e6af04184322cb15b8c640
hovercard-subject-tagpull_request:3949457090
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/176/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:altSummary ConnectivityManager.wait_until_online() has a bug that makes it return True immediately even when the device is offline, so it never actually waits. def wait_until_online(self, timeout=60):...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee840f405b2718e8f2d55aafa9ff27dbce17e29d0c253011d05ea0fea3c78baff
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
releasee876f00c5723f6080b9d294e4958fd4d506e6faf
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/MicroPythonOS/MicroPythonOS/pull/176/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMicroPythonOS%2FMicroPythonOS%2Fpull%2F176%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%2F176%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/176/files
Reloadhttps://github.com/MicroPythonOS/MicroPythonOS/pull/176/files
Reloadhttps://github.com/MicroPythonOS/MicroPythonOS/pull/176/files
Please reload this pagehttps://github.com/MicroPythonOS/MicroPythonOS/pull/176/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:fix-wait-until-onlinehttps://github.com/jnuyens/MicroPythonOS/tree/fix-wait-until-online
Conversation 1 https://github.com/MicroPythonOS/MicroPythonOS/pull/176
Commits 1 https://github.com/MicroPythonOS/MicroPythonOS/pull/176/commits
Checks 6 https://github.com/MicroPythonOS/MicroPythonOS/pull/176/checks
Files changed 2 https://github.com/MicroPythonOS/MicroPythonOS/pull/176/files
fix(net): wait_until_online() never actually waits (always-truthy bug) https://github.com/MicroPythonOS/MicroPythonOS/pull/176/files#top
Show all changes 1 commit https://github.com/MicroPythonOS/MicroPythonOS/pull/176/files
5aa4e04 fix(net): wait_until_online() now actually waits when offline jnuyens Jun 28, 2026 https://github.com/MicroPythonOS/MicroPythonOS/pull/176/commits/5aa4e04bed5d76289876b38af8fd42b5e085d4ec
Clear filters https://github.com/MicroPythonOS/MicroPythonOS/pull/176/files
Please reload this pagehttps://github.com/MicroPythonOS/MicroPythonOS/pull/176/files
Please reload this pagehttps://github.com/MicroPythonOS/MicroPythonOS/pull/176/files
connectivity_manager.py https://github.com/MicroPythonOS/MicroPythonOS/pull/176/files#diff-a4c54855c4705bd360c95e2d08285945fb32f6b73b77c6961c48d2ff298640d2
test_connectivity_manager.py https://github.com/MicroPythonOS/MicroPythonOS/pull/176/files#diff-d076489200da32ce80bfcf8c267fe732a5cfc1f8fb183491e82de65007e27067
internal_filesystem/lib/mpos/net/connectivity_manager.pyhttps://github.com/MicroPythonOS/MicroPythonOS/pull/176/files#diff-a4c54855c4705bd360c95e2d08285945fb32f6b73b77c6961c48d2ff298640d2
View file https://github.com/jnuyens/MicroPythonOS/blob/5aa4e04bed5d76289876b38af8fd42b5e085d4ec/internal_filesystem/lib/mpos/net/connectivity_manager.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/MicroPythonOS/MicroPythonOS/pull/176/{{ revealButtonHref }}
https://github.com/MicroPythonOS/MicroPythonOS/pull/176/files#diff-a4c54855c4705bd360c95e2d08285945fb32f6b73b77c6961c48d2ff298640d2
https://github.com/MicroPythonOS/MicroPythonOS/pull/176/files#diff-a4c54855c4705bd360c95e2d08285945fb32f6b73b77c6961c48d2ff298640d2
tests/test_connectivity_manager.pyhttps://github.com/MicroPythonOS/MicroPythonOS/pull/176/files#diff-d076489200da32ce80bfcf8c267fe732a5cfc1f8fb183491e82de65007e27067
View file https://github.com/jnuyens/MicroPythonOS/blob/5aa4e04bed5d76289876b38af8fd42b5e085d4ec/tests/test_connectivity_manager.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/MicroPythonOS/MicroPythonOS/pull/176/{{ revealButtonHref }}
https://github.com/MicroPythonOS/MicroPythonOS/pull/176/files#diff-d076489200da32ce80bfcf8c267fe732a5cfc1f8fb183491e82de65007e27067
https://github.com/MicroPythonOS/MicroPythonOS/pull/176/files#diff-d076489200da32ce80bfcf8c267fe732a5cfc1f8fb183491e82de65007e27067
Please reload this pagehttps://github.com/MicroPythonOS/MicroPythonOS/pull/176/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.