Repository navigation
E2の待機・生存確認と次の呼び出しでの自動再接続を実装 - #16
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
切断後の次の新しい呼び出しで、保存tokenと最後に成功を確認したbuild contextを使って接続を回復します。前に失敗した要求は再送しません。既定の応答idle期限を15分へ延ばし、call別延長、TCP keepalive、jitter付きbackoff、回復の共有、epochの通知とhandle/cursor失効を実装しました。
pairing中にTCPが切れた場合は、期限内なら同じpairing_idの次pollを新しい接続で継続します。回復でauth_requiredになった場合は、自動pairingをせず未送信として返します。FAST/flushの旧epochの保証は引き継ぎません。
検証:tooling335c604f859d6dfad04f0434bfa4eb6445761430の全11 copyがbytes/SHA一致。v1全54case+v2全12case PASS、全880 tests PASS。8 OS threadの回復競合と、AU12の先のpoll継続も確認しました。Paper 1.21.11 build132/公開McRemote2321.1.0で建築、client TCP切断後の回復とorigin復元、block復元までPASSです。
参照knowledge:125812b47bae32120f56febc4d30058ab0fe8248、00-hub/polyglot-e2-reconnect-instructions_ja.md(共通/Python/返却)。既定値の理由と較正の残り、API、条件A〜Gとtest対応はdocs/polyglot-e2-reconnect_ja.mdに記載。package/protocol版・wire・同梱WireScopeは変更していません。