Node / child_process throwing E2BIG

故事扮演 提交于 2019-12-08 15:55:24

问题


I have a fairly simple C++ program which only takes one argument that is a Base64 encoded string. I can call the program

I am now trying to call this program using node's child_process.spawn() but it is throwing an "E2BIG" error when I pass in the same Base64 string.

The Base64 string I am testing with is 305016 bytes in length.

Running getconf ARG_MAX on my linux box returns 2097152

Any ideas why child_process throws the error?

来源:https://stackoverflow.com/questions/36251711/node-child-process-throwing-e2big

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!