Repository navigation
fix(sdk): preserve tunnel timeout after failed pause - #194
Conversation
Reuse the active TunnelClient HTTP timeout when a failed pause rebinds a running sandbox. Cover snapshot inheritance, an ignored restore override, and fractional process defaults through the native ADX SDK. Signed-off-by: wayne <rcywjo@gmail.com>
|
Maintenance review of The recovery policy is sound. A failed pause should restore the effective timeout of the client that had been running. A snapshot's confirmed value and a fractional process default both survive recovery. The rebind remains conditional on the sandbox reporting I checked the actual HTTPX initialization in the released ADX rc15 client using simulated control responses. The replacement client's connect, read, write, and pool timeouts all stayed at 3600 seconds with either an omitted or a different restore input. A 37.5-second process default also carried over, and a sandbox reporting This is reasonable for the pinned ADX adapter. The remaining maintenance dependency is the native |
Summary
Preserve the active TunnelClient's HTTP timeout when a failed
pause()leaves a sandbox running and AKernel rebinds its reverse tunnel. The replacement client inherits the resolved HTTPX timeouts before it starts. AKernel continues to report the pause error to the caller.The regression covers a snapshot with a confirmed 3600-second timeout when the caller omits the timeout or supplies a different value. It also covers a fractional process default. This is the follow-up to the issue found while validating #193. Reproduction in #193
Verification
adx-environment==0.1.0rc15client, a simulated HTTP 409 from Pause, and a directory response that reports the sandbox still running.make sdk-checkpassed with Python 3.12.3. This ran 552 SDK unit tests and 35 benchmark tests, plus Ruff and mypy.