René's URL Explorer Experiment


Title: IoT - Exponential backoff algorithm wait time calculation error · Issue #2242 · GoogleCloudPlatform/python-docs-samples · GitHub

Open Graph Title: IoT - Exponential backoff algorithm wait time calculation error · Issue #2242 · GoogleCloudPlatform/python-docs-samples

X Title: IoT - Exponential backoff algorithm wait time calculation error · Issue #2242 · GoogleCloudPlatform/python-docs-samples

Description: In which file did you encounter the issue? python-docs-samples/iot/api-client/mqtt_example/cloudiot_mqtt_example.py Describe the issue Exponential backoff in above mentioned file doesn't follow algorithm described in link. Variable minim...

Open Graph Description: In which file did you encounter the issue? python-docs-samples/iot/api-client/mqtt_example/cloudiot_mqtt_example.py Describe the issue Exponential backoff in above mentioned file doesn't follow alg...

X Description: In which file did you encounter the issue? python-docs-samples/iot/api-client/mqtt_example/cloudiot_mqtt_example.py Describe the issue Exponential backoff in above mentioned file doesn't follow...

Opengraph URL: https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2242

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IoT - Exponential backoff algorithm wait time calculation error","articleBody":"## In which file did you encounter the issue?\r\n\r\n`python-docs-samples/iot/api-client/mqtt_example/cloudiot_mqtt_example.py`\r\n\r\n## Describe the issue\r\n\r\n[Exponential backoff](https://cloud.google.com/iot/docs/how-tos/exponential-backoff) in above mentioned file doesn't follow algorithm described in link.\r\n\r\nVariable `minimum_backoff_time` is referenced as global in all functions: `listen_for_messages`, `send_data_from_bound_device` and `mqtt_device_demo`. \r\nBut it **does not** get updated outside, which produces wait(delay) 1 to 2 seconds, not 1, 2, 4, 8 and 32 seconds.\r\n\r\n```\r\nDevice client_id is 'projects/example_project_id/locations/europe-west1/registries/example_registry/devices/test_device'\r\nCreating JWT using ES256 from private key file /home/dinko/keys/ec_private.pem\r\nSubscribing to /devices/test_device/commands/#\r\nPublishing message 1/100: 'example_registry/test_device-payload-1'\r\non_connect Connection Refused: not authorised.\r\non_disconnect 5: The connection was refused.\r\nWaiting for 1.173 before reconnecting.\r\nMinimum_backoff_time: 2\r\n\r\nPublishing message 2/100: 'example_registry/test_device-payload-2'\r\non_connect Connection Refused: not authorised.\r\non_disconnect 5: The connection was refused.\r\nWaiting for 1.09 before reconnecting.\r\nMinimum_backoff_time: 2\r\n\r\nPublishing message 3/100: 'example_registry/test_device-payload-3'\r\non_connect Connection Refused: not authorised.\r\non_disconnect 5: The connection was refused.\r\nWaiting for 1.2 before reconnecting.\r\nMinimum_backoff_time: 2\r\n\r\nPublishing message 4/100: 'example_registry/test_device-payload-4'\r\non_connect Connection Refused: not authorised.\r\non_disconnect 5: The connection was refused.\r\nWaiting for 1.6680000000000001 before reconnecting.\r\nMinimum_backoff_time: 2\r\n\r\nPublishing message 5/100: 'example_registry/test_device-payload-5'\r\non_connect Connection Refused: not authorised.\r\non_disconnect 5: The connection was refused.\r\nWaiting for 1.7269999999999999 before reconnecting.\r\nMinimum_backoff_time: 2\r\n\r\nPublishing message 6/100: 'example_registry/test_device-payload-6'\r\non_connect Connection Refused: not authorised.\r\non_disconnect 5: The connection was refused.\r\nWaiting for 1.289 before reconnecting.\r\nMinimum_backoff_time: 2\r\n\r\nPublishing message 7/100: 'example_registry/test_device-payload-7'\r\non_connect Connection Refused: not authorised.\r\non_disconnect 5: The connection was refused.\r\nWaiting for 1.194 before reconnecting.\r\nMinimum_backoff_time: 2\r\n```\r\nVersion: **Python 3.6.7**","author":{"url":"https://github.com/dinkopehar","@type":"Person","name":"dinkopehar"},"datePublished":"2019-06-26T13:52:36Z","url":"https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2242"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d5bb479a-0a2a-a8e5-57c7-e74c345fe75f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id90FC:127D41:890DCA:C0B999:6AFE1A4F
html-safe-nonceecdc91bfe2695f86f8385b6d509308226e8d7bf6088e2e4e1362f5127451a462
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEZDOjEyN0Q0MTo4OTBEQ0E6QzBCOTk5OjZBRkUxQTRGIiwidmlzaXRvcl9pZCI6IjQ1NjYwOTA0MDI1OTQ5NTM4MDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4ddf6350256bddd90d8d97375074d87f0020f62128a160d6c5ebb3fd68a4cd3a
hovercard-subject-tagissue:460984738
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/GoogleCloudPlatform/python-docs-samples/2242/issue_layout
twitter:imagehttps://opengraph.githubassets.com/aad52b16aee874a10bc14f8bce941d07e70670907b8d4bd43b4f2b55ebe3c4c7/GoogleCloudPlatform/python-docs-samples/issues/2242
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/aad52b16aee874a10bc14f8bce941d07e70670907b8d4bd43b4f2b55ebe3c4c7/GoogleCloudPlatform/python-docs-samples/issues/2242
og:image:altIn which file did you encounter the issue? python-docs-samples/iot/api-client/mqtt_example/cloudiot_mqtt_example.py Describe the issue Exponential backoff in above mentioned file doesn't follow alg...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedinkopehar
hostnamegithub.com
expected-hostnamegithub.com
Noned0525ab1464526bf4532a5551aa348cf100dff75ef808a96fc67a08b1d946aa9
turbo-cache-controlno-preview
go-importgithub.com/GoogleCloudPlatform/python-docs-samples git https://github.com/GoogleCloudPlatform/python-docs-samples.git
octolytics-dimension-user_id2810941
octolytics-dimension-user_loginGoogleCloudPlatform
octolytics-dimension-repository_id35065876
octolytics-dimension-repository_nwoGoogleCloudPlatform/python-docs-samples
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id35065876
octolytics-dimension-repository_network_root_nwoGoogleCloudPlatform/python-docs-samples
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
releasefef3993a71fa20f7be8e167132fbf9619bc66e12
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/GoogleCloudPlatform/python-docs-samples/issues/2242#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fpython-docs-samples%2Fissues%2F2242
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fpython-docs-samples%2Fissues%2F2242
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=GoogleCloudPlatform%2Fpython-docs-samples
Reloadhttps://github.com/GoogleCloudPlatform/python-docs-samples/issues/2242
Reloadhttps://github.com/GoogleCloudPlatform/python-docs-samples/issues/2242
Reloadhttps://github.com/GoogleCloudPlatform/python-docs-samples/issues/2242
GoogleCloudPlatformhttps://github.com/GoogleCloudPlatform
python-docs-sampleshttps://github.com/GoogleCloudPlatform/python-docs-samples
Codehttps://github.com/GoogleCloudPlatform/python-docs-samples
Issues48 (48)https://github.com/GoogleCloudPlatform/python-docs-samples/issues
Pull requests199 (199)https://github.com/GoogleCloudPlatform/python-docs-samples/pulls
Actionshttps://github.com/GoogleCloudPlatform/python-docs-samples/actions
Wikihttps://github.com/GoogleCloudPlatform/python-docs-samples/wiki
Security and qualityhttps://github.com/GoogleCloudPlatform/python-docs-samples/security
Insightshttps://github.com/GoogleCloudPlatform/python-docs-samples/insights
https://github.com/GoogleCloudPlatform/python-docs-samples
New issuehttps://github.com/login?return_to=https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2242
New issuehttps://github.com/login?return_to=https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2242
IoT - Exponential backoff algorithm wait time calculation errorhttps://github.com/GoogleCloudPlatform/python-docs-samples/issues/2242#top
https://github.com/gguuss
https://github.com/dinkopehar
dinkopeharhttps://github.com/dinkopehar
on Jun 26, 2019https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2242#issue-460984738
Exponential backoffhttps://cloud.google.com/iot/docs/how-tos/exponential-backoff
https://github.com/gguuss
gguusshttps://github.com/gguuss
on Jul 25, 2019https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2242#issuecomment-514843716
gguusshttps://github.com/gguuss
on Jul 25, 2019https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2242#event-2507953274
https://github.com/gguuss
gguusshttps://github.com/gguuss
on Aug 7, 2019https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2242#issuecomment-518886882
gguusshttps://github.com/gguuss
completedhttps://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 7, 2019https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2242#event-2538425369
Sign up for freehttps://github.com/signup?return_to=https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2242
Sign in to commenthttps://github.com/login?return_to=https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2242
gguusshttps://github.com/gguuss
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.