René's URL Explorer Experiment


Title: emcy: Fix maximum timeout logic errors in EmcyConsumer.wait() by acolomb · Pull Request #668 · canopen-python/canopen · GitHub

Open Graph Title: emcy: Fix maximum timeout logic errors in EmcyConsumer.wait() by acolomb · Pull Request #668 · canopen-python/canopen

X Title: emcy: Fix maximum timeout logic errors in EmcyConsumer.wait() by acolomb · Pull Request #668 · canopen-python/canopen

Description: If an EMCY package was received, but filtered out by the emcy_code matching, the condition waiting is started again with the same timeout. Thus the actual maximum waiting time is not correctly limited to the given argument, as the docstring promises. Track the remaining time until the initial deadline instead, as basis for the condition wait. Further, spurious wake-ups from the condition wait on the OS level are not handled correctly. The threading.Condition docs explicitly recommend checking the shared state (number of logged entries in this case) in the while loop, because the wait() call may abort early. The current code assumes that this necessarily indicates a timeout, without checking the actually passed time again. Reorder the check against end_time in the loop to avoid this.

Open Graph Description: If an EMCY package was received, but filtered out by the emcy_code matching, the condition waiting is started again with the same timeout. Thus the actual maximum waiting time is not correctly lim...

X Description: If an EMCY package was received, but filtered out by the emcy_code matching, the condition waiting is started again with the same timeout. Thus the actual maximum waiting time is not correctly lim...

Opengraph URL: https://github.com/canopen-python/canopen/pull/668

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:3c78ccca-8344-5ad9-aa65-ca88edead7d8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBED6:1C0DF3:5418A91:6F9770F:6A5DB617
html-safe-noncef66908d8457b10e1f85b026af6d34767dc06b56d2eb0e0d04fa5ea8005792b1b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUQ2OjFDMERGMzo1NDE4QTkxOjZGOTc3MEY6NkE1REI2MTciLCJ2aXNpdG9yX2lkIjoiMzkxMDQyMTIwMTk4MzIyMzMyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac03267e540be24c650e380dd466c88cf492a716246d9687fce3b7674be8a81641
hovercard-subject-tagpull_request:3746891198
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/canopen-python/canopen/pull/668/files
twitter:imagehttps://avatars.githubusercontent.com/u/6996887?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/6996887?s=400&v=4
og:image:altIf an EMCY package was received, but filtered out by the emcy_code matching, the condition waiting is started again with the same timeout. Thus the actual maximum waiting time is not correctly lim...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/canopen-python/canopen git https://github.com/canopen-python/canopen.git
octolytics-dimension-user_id200581454
octolytics-dimension-user_logincanopen-python
octolytics-dimension-repository_id68737600
octolytics-dimension-repository_nwocanopen-python/canopen
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id68737600
octolytics-dimension-repository_network_root_nwocanopen-python/canopen
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
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/canopen-python/canopen/pull/668/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcanopen-python%2Fcanopen%2Fpull%2F668%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%2Fcanopen-python%2Fcanopen%2Fpull%2F668%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=canopen-python%2Fcanopen
Reloadhttps://github.com/canopen-python/canopen/pull/668/files
Reloadhttps://github.com/canopen-python/canopen/pull/668/files
Reloadhttps://github.com/canopen-python/canopen/pull/668/files
Please reload this pagehttps://github.com/canopen-python/canopen/pull/668/files
canopen-python https://github.com/canopen-python
canopenhttps://github.com/canopen-python/canopen
Notifications https://github.com/login?return_to=%2Fcanopen-python%2Fcanopen
Fork 359 https://github.com/login?return_to=%2Fcanopen-python%2Fcanopen
Star 560 https://github.com/login?return_to=%2Fcanopen-python%2Fcanopen
Code https://github.com/canopen-python/canopen
Issues 53 https://github.com/canopen-python/canopen/issues
Pull requests 20 https://github.com/canopen-python/canopen/pulls
Discussions https://github.com/canopen-python/canopen/discussions
Actions https://github.com/canopen-python/canopen/actions
Projects https://github.com/canopen-python/canopen/projects
Security and quality 0 https://github.com/canopen-python/canopen/security
Insights https://github.com/canopen-python/canopen/pulse
Code https://github.com/canopen-python/canopen
Issues https://github.com/canopen-python/canopen/issues
Pull requests https://github.com/canopen-python/canopen/pulls
Discussions https://github.com/canopen-python/canopen/discussions
Actions https://github.com/canopen-python/canopen/actions
Projects https://github.com/canopen-python/canopen/projects
Security and quality https://github.com/canopen-python/canopen/security
Insights https://github.com/canopen-python/canopen/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fcanopen-python%2Fcanopen%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcanopen-python%2Fcanopen%2Fissues%2Fnew%2Fchoose
acolombhttps://github.com/acolomb
canopen-python:masterhttps://github.com/canopen-python/canopen/tree/master
acolomb:fix-emcy-wait-timeouthttps://github.com/acolomb/canopen/tree/fix-emcy-wait-timeout
Conversation 2 https://github.com/canopen-python/canopen/pull/668
Commits 3 https://github.com/canopen-python/canopen/pull/668/commits
Checks 5 https://github.com/canopen-python/canopen/pull/668/checks
Files changed https://github.com/canopen-python/canopen/pull/668/files
Please reload this pagehttps://github.com/canopen-python/canopen/pull/668/files
emcy: Fix maximum timeout logic errors in EmcyConsumer.wait() https://github.com/canopen-python/canopen/pull/668/files#top
Show all changes 3 commits https://github.com/canopen-python/canopen/pull/668/files
b890103 emcy: Fix maximum timeout logic errors in EmcyConsumer.wait(). acolomb May 26, 2026 https://github.com/canopen-python/canopen/pull/668/commits/b89010375459d0a905462a03724cae1c7a6a6da0
1561052 Merge branch 'master' into fix-emcy-wait-timeout acolomb Jun 29, 2026 https://github.com/canopen-python/canopen/pull/668/commits/15610520e75f2163264991c074146880772ea0b7
ff9af57 Test simulated spurious condition wake-up. acolomb Jun 29, 2026 https://github.com/canopen-python/canopen/pull/668/commits/ff9af572cd00a349b072bbf32cc4cf7855df7461
Clear filters https://github.com/canopen-python/canopen/pull/668/files
Please reload this pagehttps://github.com/canopen-python/canopen/pull/668/files
Please reload this pagehttps://github.com/canopen-python/canopen/pull/668/files
emcy.py https://github.com/canopen-python/canopen/pull/668/files#diff-35f129efe6052457acd88f1d6ddcdb1d233e4ca6d8ee8e6dd56c9998e464f8da
test_emcy.py https://github.com/canopen-python/canopen/pull/668/files#diff-2f5fc5603c0e02eb1e3a8d3e608c3a9cf49d926b5ab87533a4e5d757257bb025
canopen/emcy.pyhttps://github.com/canopen-python/canopen/pull/668/files#diff-35f129efe6052457acd88f1d6ddcdb1d233e4ca6d8ee8e6dd56c9998e464f8da
View file https://github.com/canopen-python/canopen/blob/ff9af572cd00a349b072bbf32cc4cf7855df7461/canopen/emcy.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/canopen-python/canopen/pull/668/{{ revealButtonHref }}
https://github.com/canopen-python/canopen/pull/668/files#diff-35f129efe6052457acd88f1d6ddcdb1d233e4ca6d8ee8e6dd56c9998e464f8da
https://github.com/canopen-python/canopen/pull/668/files#diff-35f129efe6052457acd88f1d6ddcdb1d233e4ca6d8ee8e6dd56c9998e464f8da
test/test_emcy.pyhttps://github.com/canopen-python/canopen/pull/668/files#diff-2f5fc5603c0e02eb1e3a8d3e608c3a9cf49d926b5ab87533a4e5d757257bb025
View file https://github.com/canopen-python/canopen/blob/ff9af572cd00a349b072bbf32cc4cf7855df7461/test/test_emcy.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/canopen-python/canopen/pull/668/{{ revealButtonHref }}
https://github.com/canopen-python/canopen/pull/668/files#diff-2f5fc5603c0e02eb1e3a8d3e608c3a9cf49d926b5ab87533a4e5d757257bb025
https://github.com/canopen-python/canopen/pull/668/files#diff-2f5fc5603c0e02eb1e3a8d3e608c3a9cf49d926b5ab87533a4e5d757257bb025
https://github.com/canopen-python/canopen/pull/668/files#diff-2f5fc5603c0e02eb1e3a8d3e608c3a9cf49d926b5ab87533a4e5d757257bb025
Please reload this pagehttps://github.com/canopen-python/canopen/pull/668/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.