Skip to content

Fixed exception handling for Windows (using ProxyCommand in native ss… - #3406

Open
phr34k wants to merge 1 commit into
puppetlabs:mainfrom
phr34k:main
Open

Fixed exception handling for Windows (using ProxyCommand in native ss…#3406
phr34k wants to merge 1 commit into
puppetlabs:mainfrom
phr34k:main

Conversation

@phr34k

@phr34k phr34k commented Aug 6, 2026

Copy link
Copy Markdown

On windows when you use native-ssh and "ProxyCommand" it uses pipes to read stdin/stdout. The exception handling doesn't handle EWOULDBLOCK, so you get an following error like "A non-blocking socket operation could not be completed immediately. - read would block". This change prevents that.

(1) > bolt command run whoami -t support@somewhere --no-host-key-check  --native-ssh
CLI arguments ["host-key-check", "native-ssh"] might be overridden by Inventory: D:/bolt/inventory.yaml [ID: cli_overrides]
Started on support@somewhere...
Failed on support@somewhere:
  A non-blocking socket operation could not be completed immediately. - read would block
Failed on 1 target: support@somewhere
Ran on 1 target in 23.22 sec

@phr34k
phr34k requested review from a team as code owners August 6, 2026 12:24
@CLAassistant

CLAassistant commented Aug 6, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants