Title: Only the first request works · Issue #4 · Redth/HttpTwo · GitHub
Open Graph Title: Only the first request works · Issue #4 · Redth/HttpTwo
X Title: Only the first request works · Issue #4 · Redth/HttpTwo
Description: Hi! I'm trying to use HttpTwo with APNS (development server). Any first request (POST, Connect, Ping) is processed successfully, but, after that, any other request except Disconnect fails with error of broken connection from the remote p...
Open Graph Description: Hi! I'm trying to use HttpTwo with APNS (development server). Any first request (POST, Connect, Ping) is processed successfully, but, after that, any other request except Disconnect fails with erro...
X Description: Hi! I'm trying to use HttpTwo with APNS (development server). Any first request (POST, Connect, Ping) is processed successfully, but, after that, any other request except Disconnect fails with ...
Opengraph URL: https://github.com/Redth/HttpTwo/issues/4
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Only the first request works","articleBody":"Hi! I'm trying to use HttpTwo with APNS (development server). Any first request (POST, Connect, Ping) is processed successfully, but, after that, any other request except Disconnect fails with error of broken connection from the remote party.\n\n```\nvar store = new X509Store(\"MY\", StoreLocation.CurrentUser);\n Http2Client request2 = null;\n try\n {\n store.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly);\n var myCert =\n store.Certificates.Find(X509FindType.FindBySubjectName, \"Apple Development IOS Push Services\", false)\n .OfType\u003cX509Certificate2\u003e()\n .FirstOrDefault();\n //var uri = new Uri(\"https://api.development.push.apple.com\");\n var path =\n new Uri(\n \"https://api.development.push.apple.com/3/device/somedeviceId\");\n request2 = new Http2Client(path, myCert != null ? new X509Certificate2Collection(myCert) : null); \n store.Close();\n var stream1 = new MemoryStream();\n var notif = new Notification {Aps = new Aps {Alert = \"Hello\", Sound = \"default\"}};\n var ser = new DataContractJsonSerializer(typeof (Notification));\n ser.WriteObject(stream1, notif);\n stream1.Position = 0;\n var response = await request2.Send(path, HttpMethod.Post, null, stream1);\n```\n\nEvery new request in the same process (even made with new Http2Client instance) is refused by server.\nWhat do I do wrong?\n","author":{"url":"https://github.com/DocVirus","@type":"Person","name":"DocVirus"},"datePublished":"2016-04-27T17:12:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/4/HttpTwo/issues/4"}
| 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:00e1040e-2dce-edf0-da95-9007067d2bd1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D518:270C33:ABBFD:EDC99:6A4D027E |
| html-safe-nonce | 60ae17374fd7a8d5166a2fc5d7c3db6e3334d13473e99142cf44fd221a67926e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTE4OjI3MEMzMzpBQkJGRDpFREM5OTo2QTREMDI3RSIsInZpc2l0b3JfaWQiOiI0MDAyNTM3Njc5NDM3ODMwMzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fc86382cbc4b19e4c505f9fb64bcc4fee7cd0b4dbcd255f8b2ec91128842d798 |
| hovercard-subject-tag | issue:151439396 |
| 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/Redth/HttpTwo/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ec05179820ef88ceb5878f9d13e84a942d64da20e3f81a3bff63150ac6ce4cc7/Redth/HttpTwo/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ec05179820ef88ceb5878f9d13e84a942d64da20e3f81a3bff63150ac6ce4cc7/Redth/HttpTwo/issues/4 |
| og:image:alt | Hi! I'm trying to use HttpTwo with APNS (development server). Any first request (POST, Connect, Ping) is processed successfully, but, after that, any other request except Disconnect fails with erro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DocVirus |
| hostname | github.com |
| expected-hostname | github.com |
| None | 31e4db13a9e20081f2fac78f441659a6576e582bbb15e153f9c7fb6473aa29f5 |
| turbo-cache-control | no-preview |
| go-import | github.com/Redth/HttpTwo git https://github.com/Redth/HttpTwo.git |
| octolytics-dimension-user_id | 271950 |
| octolytics-dimension-user_login | Redth |
| octolytics-dimension-repository_id | 48619910 |
| octolytics-dimension-repository_nwo | Redth/HttpTwo |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 48619910 |
| octolytics-dimension-repository_network_root_nwo | Redth/HttpTwo |
| 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 | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width