Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syscall.CallAsync struggles with large stdins #225

Open
theindexer opened this issue Apr 23, 2020 · 2 comments
Open

Syscall.CallAsync struggles with large stdins #225

theindexer opened this issue Apr 23, 2020 · 2 comments
Labels

Comments

@theindexer
Copy link

theindexer commented Apr 23, 2020

Specifically on Linux, if I send more than 4097 bytes to stdin I get ch_sendraw(): write failed
If the command produces output, then vim hangs indefinitely, before even displaying the ch_sendraw error.

This looks suspiciously like vim/vim#2548

Tried to patch it with natebosch/vim-lsc#67 (comment)

but I don't actually know what I'm doing in vimscript and just ended up with some channel closed errors after the first chunk. Also I could be barking up the wrong tree.

For me personally, I'm no longer using stdin so I'm no longer affected by this but still seems like a bug?

@dbarnett
Copy link
Contributor

Thanks for reporting! I haven't run into it yet but the pointers are wonderful to have tracked for when it does start causing problems in practice.

@dbarnett dbarnett added the bug label Jun 13, 2020
@dbarnett
Copy link
Contributor

I just notice the referenced vim bug was closed in 2018. Was it not completely fixed, or just still out there on older vim versions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants