René's URL Explorer Experiment


Title: hyper hangs while POSTing to Apple APNS servers · Issue #425 · python-hyper/hyper · GitHub

Open Graph Title: hyper hangs while POSTing to Apple APNS servers · Issue #425 · python-hyper/hyper

X Title: hyper hangs while POSTing to Apple APNS servers · Issue #425 · python-hyper/hyper

Description: I am using hyper v0.7.0 as a dependency from APNS2 lib (https://github.com/Pr0Ger/PyAPNs2/) for sending out push notifications to iOS devices. We have sporadic but reproducable issues when hyper hangs when POSTing to Apple. Here is the s...

Open Graph Description: I am using hyper v0.7.0 as a dependency from APNS2 lib (https://github.com/Pr0Ger/PyAPNs2/) for sending out push notifications to iOS devices. We have sporadic but reproducable issues when hyper ha...

X Description: I am using hyper v0.7.0 as a dependency from APNS2 lib (https://github.com/Pr0Ger/PyAPNs2/) for sending out push notifications to iOS devices. We have sporadic but reproducable issues when hyper ha...

Opengraph URL: https://github.com/python-hyper/hyper/issues/425

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"hyper hangs while POSTing to Apple APNS servers","articleBody":"I am using hyper v0.7.0 as a dependency from APNS2 lib (https://github.com/Pr0Ger/PyAPNs2/) for sending out push notifications to iOS devices. We have sporadic but reproducable issues when hyper hangs when POSTing to Apple.\r\n\r\nHere is the stack trace when running this in the foreground and aborting finally via Ctrl-C. The call of hyper functions via apns2 happens here: https://github.com/Pr0Ger/PyAPNs2/blob/master/apns2/client.py#L145:\r\n\r\n```\r\n  File \"/home/user/.virtualenvs/alertbackend/lib/python3.6/site-packages/apns2/client.py\", line 85, in send_notification\r\n    result = self.get_notification_result(stream_id)\r\n  File \"/home/user/.virtualenvs/alertbackend/lib/python3.6/site-packages/apns2/client.py\", line 128, in get_notification_result\r\n    with self._connection.get_response(stream_id) as response:\r\n  File \"/home/user/.virtualenvs/alertbackend/lib/python3.6/site-packages/hyper/http20/connection.py\", line 312, in get_response\r\n    return HTTP20Response(stream.getheaders(), stream)\r\n  File \"/home/user/.virtualenvs/alertbackend/lib/python3.6/site-packages/hyper/http20/stream.py\", line 230, in getheaders\r\n    self._recv_cb(stream_id=self.stream_id)\r\n  File \"/home/user/.virtualenvs/alertbackend/lib/python3.6/site-packages/hyper/http20/connection.py\", line 771, in _recv_cb\r\n    self._single_read()\r\n  File \"/home/user/.virtualenvs/alertbackend/lib/python3.6/site-packages/hyper/http20/connection.py\", line 665, in _single_read\r\n    self._sock.fill()\r\n  File \"/home/user/.virtualenvs/alertbackend/lib/python3.6/site-packages/hyper/common/bufsocket.py\", line 167, in fill\r\n    count = self._sck.recv_into(self._buffer_view[self._buffer_end:])\r\n  File \"/usr/lib/python3.6/ssl.py\", line 1012, in recv_into\r\n    return self.read(nbytes, buffer)\r\n  File \"/usr/lib/python3.6/ssl.py\", line 874, in read\r\n    return self._sslobj.read(len, buffer)\r\n  File \"/usr/lib/python3.6/ssl.py\", line 631, in read\r\n    v = self._sslobj.read(len, buffer)\r\n```\r\n\r\nHere is the corresponding log output:\r\n\r\n```\r\n[2020-01-13 13:38:47] DEBUG hyper.http20.connection:connect:372 - Selected NPN protocol: h2\r\n[2020-01-13 13:38:47] DEBUG hyper.http20.connection:_recv_cb:759 - recv for stream 0 with set() already present\r\n[2020-01-13 13:38:47] DEBUG hpack.table:maxsize:196 - Resizing header table to 4096 from 4096\r\n[2020-01-13 13:38:47] INFO hyper.http20.connection:_single_read:724 - Received unhandled event \u003cRemoteSettingsChanged changed_settings:{ChangedSetting(setting=SettingCodes.HEADER_TABLE_SIZE, original_value=4096, new_value=4096), ChangedSetting(setting=SettingCodes.MAX_CONCURRENT_STREAMS, original_value=None, new_value=1), ChangedSetting(setting=SettingCodes._max_frame_size, original_value=16384, new_value=16384), ChangedSetting(setting=SettingCodes._max_header_list_size, original_value=None, new_value=8000)}\u003e\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:encode:233 - HPACK encoding \u003cgenerator object _check_path_header.\u003clocals\u003e.inner at 0x7fa29a44baf0\u003e\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:add:269 - Adding (b':method', b'POST') to the header table\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:encode_integer:62 - Encoding 3 with 7 bits\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:add:269 - Adding (b':scheme', b'https') to the header table\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:encode_integer:62 - Encoding 7 with 7 bits\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:add:269 - Adding (b':authority', b'api.push.apple.com') to the header table\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:encode_integer:62 - Encoding 1 with 6 bits\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:encode_integer:62 - Encoding 13 with 7 bits\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:add:269 - Adding (b':path', b'/3/device/ios-device-id-here') to the header table\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:encode_integer:62 - Encoding 4 with 6 bits\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:encode_integer:62 - Encoding 53 with 7 bits\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:add:269 - Adding (b'apns-push-type', b'alert') to the header table\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:encode_integer:62 - Encoding 10 with 7 bits\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:encode_integer:62 - Encoding 4 with 7 bits\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:add:269 - Adding (b'apns-topic', b'app-name-here') to the header table\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:encode_integer:62 - Encoding 7 with 7 bits\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:encode_integer:62 - Encoding 21 with 7 bits\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:add:269 - Adding (b'apns-expiration', b'1578941326') to the header table\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:encode_integer:62 - Encoding 11 with 7 bits\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:encode_integer:62 - Encoding 8 with 7 bits\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:add:269 - Adding (b'authorization', b'bearer auth-bearer-here') to the header table\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:encode_integer:62 - Encoding 23 with 4 bits\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:encode_integer:62 - Encoding 174 with 7 bits\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:add:269 - Adding (b'apns-collapse-id', b'14250') to the header table\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:encode_integer:62 - Encoding 11 with 7 bits\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:encode_integer:62 - Encoding 4 with 7 bits\r\n[2020-01-13 13:38:47] DEBUG hpack.hpack:encode:261 - Encoded header block to b\"\\x83\\x87A\\x8d\\x1df^\\xbbQ:\\xe3\\xae\\xba\\n\\xb9\\x0fOD\\xb5a\\x96$/s\\x10\\xac\u003e\\xf4\\x92\\x81\\xa0\\xc67\\x1f\\x08\\x8a\\xfbN\\xb6\\xdbem\\x97\\\\\\x18$rW\\xa5|B \\n\\x12\\xb8\\xcc\\x8c\\xca\\x17#y\\xf7@\\xc9\\x06\\xf9\\x00\\xd0%\\x8d\\xb0\\x7f@\\x8a\\x1du!j\\xedD\\xeb'\\xd5e\\x84\\x1d\\x05\\xb1?@\\x87\\x1du!d\\x9e\\xb3\\x13\\x95\\xa8\\xa9_\\xc1\\xaa\\x92SU!l_\\xc1\\xaa\\x92SU!l\\x1du\\xff@\\x8b\\x1du!b\\xf9\\xac\\xd6\\r\u0026=_\\x88\\x0bn\\xbc\\xfbAdN\\x7f\\x1f\\x08\\xff/\\x8c\\xa3\\xb0\\xb6(_Y@_\\xc8M\\xa8\\xd9sq\\x0e\\xc3g\\xbd\\x96x\\xf1\\x10\\xda\\x8d\\x97\\x0f\\x0fy\\x03\\xa4\\xd9\\x11\\x92\\x94\\xd7\\xfb{#\\x99:\\x9d\\xad;\\xf8\\xf2\\xd0\\x0f8\\xf5_\\xd0iv._Yk#:\\r\\xa8\\xd9rr\\xdf07\\xf4\\x9f\\x0f\\x1d\\xf4^\\xc8o\\x06\\x1f, \\xc9\\xd0\\xfet\\xef#Z\\xb7\\xe0oF\\xfc\\x8c\\xe7\\xe9\\x80\\x1a\\xaf\\xf0\\x16\\x9f{_]\\xbeZ\\xeb\\x8b\\x87\\xae;\\xb3t?\\xb9\\xac\\xf5\\xcf\\xf2^r\\xd5\\xfb\\xed\\xae\\x9a=\\x8f\\xde\\xde\\x18/#cZ\\xbd\\xd7\\xfba\\xb5x\\x87\\x8cy.\\x9f\\x19k\\xe7\\xa7I\\x16\\xdd\u003e\\x1f\u003e\\xe7\\xf7\\x89\\xed\\xb1T\\x0bf\\xf1\\xc7\\x84C\\xeb\\x9bI\\x9d\\xcd\\xb3@\\x8b\\x1du!b\\x1e\\x8a\\x07Z\\n\\xb1\\xa4\\x84\\x0bBl\\x1f\"\r\n[2020-01-13 13:38:47] DEBUG hyper.http20.connection:_recv_cb:759 - recv for stream 1 with set() already present\r\n```","author":{"url":"https://github.com/j0nes2k","@type":"Person","name":"j0nes2k"},"datePublished":"2020-01-13T14:26:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/425/hyper/issues/425"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:88d3b872-8d59-29cf-62ab-621c3b1bfeef
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA10A:33F365:9FBC2A:CCEB8A:696B21F9
html-safe-noncea7aa61b34708ac7408200b13b107f9777e345e2467f25ef7c5c76720a0294c46
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTBBOjMzRjM2NTo5RkJDMkE6Q0NFQjhBOjY5NkIyMUY5IiwidmlzaXRvcl9pZCI6IjQ5NzA5MDkzOTU1Nzk3ODYxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6a6395b8309a7e45e03ed2dafd971bfad57687f3160feaf80d6b9b8f88371366
hovercard-subject-tagissue:548965064
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/python-hyper/hyper/425/issue_layout
twitter:imagehttps://opengraph.githubassets.com/10f1058b01f57568e1c39b8cc51e0541bac482406c76da1243fa4a03ef381ca3/python-hyper/hyper/issues/425
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/10f1058b01f57568e1c39b8cc51e0541bac482406c76da1243fa4a03ef381ca3/python-hyper/hyper/issues/425
og:image:altI am using hyper v0.7.0 as a dependency from APNS2 lib (https://github.com/Pr0Ger/PyAPNs2/) for sending out push notifications to iOS devices. We have sporadic but reproducable issues when hyper ha...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamej0nes2k
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/python-hyper/hyper git https://github.com/python-hyper/hyper.git
octolytics-dimension-user_id13035907
octolytics-dimension-user_loginpython-hyper
octolytics-dimension-repository_id16165969
octolytics-dimension-repository_nwopython-hyper/hyper
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id16165969
octolytics-dimension-repository_network_root_nwopython-hyper/hyper
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
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-hyper/hyper/issues/425#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-hyper%2Fhyper%2Fissues%2F425
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2Fpython-hyper%2Fhyper%2Fissues%2F425
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-hyper%2Fhyper
Reloadhttps://github.com/python-hyper/hyper/issues/425
Reloadhttps://github.com/python-hyper/hyper/issues/425
Reloadhttps://github.com/python-hyper/hyper/issues/425
python-hyper https://github.com/python-hyper
hyperhttps://github.com/python-hyper/hyper
Notifications https://github.com/login?return_to=%2Fpython-hyper%2Fhyper
Fork 197 https://github.com/login?return_to=%2Fpython-hyper%2Fhyper
Star 1k https://github.com/login?return_to=%2Fpython-hyper%2Fhyper
Code https://github.com/python-hyper/hyper
Issues 78 https://github.com/python-hyper/hyper/issues
Pull requests 23 https://github.com/python-hyper/hyper/pulls
Actions https://github.com/python-hyper/hyper/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python-hyper/hyper/security
Please reload this pagehttps://github.com/python-hyper/hyper/issues/425
Insights https://github.com/python-hyper/hyper/pulse
Code https://github.com/python-hyper/hyper
Issues https://github.com/python-hyper/hyper/issues
Pull requests https://github.com/python-hyper/hyper/pulls
Actions https://github.com/python-hyper/hyper/actions
Security https://github.com/python-hyper/hyper/security
Insights https://github.com/python-hyper/hyper/pulse
hyper hangs while POSTing to Apple APNS servershttps://github.com/python-hyper/hyper/issues/425#top
https://github.com/j0nes2k
https://github.com/j0nes2k
j0nes2khttps://github.com/j0nes2k
on Jan 13, 2020https://github.com/python-hyper/hyper/issues/425#issue-548965064
https://github.com/Pr0Ger/PyAPNs2/https://github.com/Pr0Ger/PyAPNs2/
https://github.com/Pr0Ger/PyAPNs2/blob/master/apns2/client.py#L145https://github.com/Pr0Ger/PyAPNs2/blob/master/apns2/client.py#L145
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.