Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

PauseTransmission and asynchronous HTTPS

オープン
#753 コメント 7 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@larvacea がすでに取り組んでいます。

2020年12月21日 から。

評価

この issue はまだ評価されていません。

説明

enhancement iOS v4

The present behavior of PauseTransmission (and FlushAndTeardown) prevents the SDK from starting new HTTPS requests, though since uploads start asynchronously the exact point at which the pause takes effect is undefined.

As a result, we may get callbacks from an outstanding HTTP request some considerable (unbounded) time after the call to PauseTransmission. I would like to amend the API so that:

  • we can explicitly ask that the SDK discard responses that arrive while we are paused. This is also useful for FlushAndTeardown, where a response could arrive after we have freed heap that we would have accessed while processing the callback.
  • we can get a promise (or similar structure) to inform us when the pause is complete and no new responses will arrive.
  • we can abort pending requests if the HttpClient implementation supports abort.

I'm not an iOS expert, but we have seen watchdog SIGKILL in iOS around background execution and suspend. iOS expects that an application in the background will cooperate with the operating system to schedule its execution and minimize activity that would consume battery life.

主要言語
C
スター
104
フォーク
67
平均マージ
2日 15時間
マージ済み PR(30日)
10

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/cpp_client_telemetry のほかの issue

microsoft/cpp_client_telemetry の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。