Skip to content

refactor (pool 4/N): group outbound WSMan request builders into requests.rs#28

Merged
irvingouj@Devolutions (irvingoujAtDevolution) merged 2 commits into
masterfrom
stack/09-pool-extract-wire
Jun 23, 2026
Merged

refactor (pool 4/N): group outbound WSMan request builders into requests.rs#28
irvingouj@Devolutions (irvingoujAtDevolution) merged 2 commits into
masterfrom
stack/09-pool-extract-wire

Conversation

@irvingoujAtDevolution

Copy link
Copy Markdown
Collaborator

Stacked on #27. Fourth step of decomposing the RunspacePool god-object.

Splits the 8 outbound WSMan request-builder methods (fire_receive/disconnect/reconnect, kill_pipeline, invoke_spec, send_pipeline_host_response, send_runspace_pool_message, build_public_key_blob_base64) out of pool.rs into a sibling requests.rs via a split impl RunspacePool block.

  • Collects all &self.connection (WsMan) usage in one place — the concrete groundwork for a future transport seam (the eventual Arc<WsMan>trait Transport change touches only this file).
  • Pure file-organization move; pool.rs 2029 → 1594 lines; 3 private methods widened to pub(super) (minimum for cross-module calls).
  • Behavior-identical; clippy clean, tests green.

Reviewed: Benoit-style pass (no actionable findings; minimal justified visibility) + Codex pass (NO_ISSUES_FOUND).

…n into host_call.rs

Move the pure PipelineHostCall parsing and the needs-session-key
classification out of pool.rs into a new private runspace_pool::host_call
module (named to avoid collision with crate::host). Fragmentation-coupled
send + the pending_host_calls queue stay in the pool. Behavior-preserving.
…equests.rs

Split the eight outbound-request methods (fire_receive/disconnect/reconnect,
kill_pipeline, invoke_spec, send_pipeline_host_response, send_runspace_pool_message,
build_public_key_blob_base64) out of pool.rs into a sibling requests.rs via a split
impl RunspacePool block. Collects all &self.connection (WsMan) usage in one place as
groundwork for a future transport seam. pool.rs 2029 -> 1594 lines; behavior-identical.
@irvingoujAtDevolution irvingouj@Devolutions (irvingoujAtDevolution) merged commit 9b007d6 into master Jun 23, 2026
3 checks passed
@irvingoujAtDevolution irvingouj@Devolutions (irvingoujAtDevolution) deleted the stack/09-pool-extract-wire branch June 23, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant