问题
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