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
Domain: github.com
{"@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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:88d3b872-8d59-29cf-62ab-621c3b1bfeef |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A10A:33F365:9FBC2A:CCEB8A:696B21F9 |
| html-safe-nonce | a7aa61b34708ac7408200b13b107f9777e345e2467f25ef7c5c76720a0294c46 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTBBOjMzRjM2NTo5RkJDMkE6Q0NFQjhBOjY5NkIyMUY5IiwidmlzaXRvcl9pZCI6IjQ5NzA5MDkzOTU1Nzk3ODYxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6a6395b8309a7e45e03ed2dafd971bfad57687f3160feaf80d6b9b8f88371366 |
| hovercard-subject-tag | issue:548965064 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-hyper/hyper/425/issue_layout |
| twitter:image | https://opengraph.githubassets.com/10f1058b01f57568e1c39b8cc51e0541bac482406c76da1243fa4a03ef381ca3/python-hyper/hyper/issues/425 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/10f1058b01f57568e1c39b8cc51e0541bac482406c76da1243fa4a03ef381ca3/python-hyper/hyper/issues/425 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | j0nes2k |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python-hyper/hyper git https://github.com/python-hyper/hyper.git |
| octolytics-dimension-user_id | 13035907 |
| octolytics-dimension-user_login | python-hyper |
| octolytics-dimension-repository_id | 16165969 |
| octolytics-dimension-repository_nwo | python-hyper/hyper |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16165969 |
| octolytics-dimension-repository_network_root_nwo | python-hyper/hyper |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width