-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
执行commands有问题 #19
Comments
64K的数据 |
是指 command.getBytes() 很大? |
os.write的数据不能超过64K,也就是如果commands数组过大就会出现错误 |
没拿这么大的数据测试过,什么场景要这么多命令,分开执行不行吗 |
可以也可以,只是这个存在这个问题 |
ok,没时间细看这个问题,你有时间的话,也可以提交 PR 修复这个问题 |
主要是process.getOutputStream()这个流有限制大小,改不了吧 |
发现常常死等在waitfor 是不是那样处理就会更好点? |
for (String command : commands) {
if (command == null) {
continue;
}
当传入的commands数组过大,os write将近64M的字节时会出现错误
The text was updated successfully, but these errors were encountered: