Skip to content

Comments

connectors: close stdin after writing any input#1506

Merged
Fizzadar merged 1 commit into3.xfrom
close-stdin-after-writing
Dec 21, 2025
Merged

connectors: close stdin after writing any input#1506
Fizzadar merged 1 commit into3.xfrom
close-stdin-after-writing

Conversation

@Fizzadar
Copy link
Member

@Fizzadar Fizzadar commented Dec 2, 2025

Turns out some applications will wait on stdin being closed before going anything (ollama), see: #1355

Turns out some applications will wait on stdin being closed before
going anything (ollama), see: #1355
@Fizzadar
Copy link
Member Author

Fizzadar commented Dec 8, 2025

I believe this to be safe because this is what happens when you pipe things echo hi | sleep 500 leaves sleep process w/o any echo.

@geerlingguy
Copy link

It seems like it'd be safe. I'm sure there's some random edge case that could be broken the other way around... but I can't think of one that I've ever done!

@Fizzadar Fizzadar merged commit 5776926 into 3.x Dec 21, 2025
25 checks passed
@Fizzadar Fizzadar deleted the close-stdin-after-writing branch December 21, 2025 15:17
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