What is the maximum length of nodejs execFile callback params & ldquo; stdou...
source link: https://www.codesd.com/item/what-is-the-maximum-length-of-nodejs-execfile-callback-params-stdout.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
What is the maximum length of nodejs execFile callback params & ldquo; stdout & rdquo;
I use child_process to excute yslow.js by phantomjs. Example(CLI):
phantomjs yslow.js --info all --format json url
We can get the analytic data that yslow.js return to me after analyzing.
But sometimes the data yslow.js return to me can not be a complete json file. Is seem the callback params "stdout" can not be too a large length data. I guess If the data is too large can infect the params stdout...
Has anyone ever encountered such a problem ?
If you can send data by chunks then use spawn
instead of exec
. Otherwise you can send data via temporary file. Also you can use WebSockets to create channel between node and phantom.
Related Articles
What is the maximum length of a valid email address?
What is the maximum length of a URL that can be opened in a J2ME browser?
What is the maximum length of the browser URL for Window.Open
What is the maximum length of a thrust notification alert message?
What is the maximum length of a facebook name?
what is the maximum length of varchar (n) in postgresql 9.2 and what is the best use of varchar (n) or text?
What is the maximum length of a text box in SSRS
What is the maximum length of google drive api token?
What is the maximum length of a Youtube video ID?
What is the maximum length of an NSString object?
What is the maximum length of a byte instruction for the IBM 8086 PC?
What is the maximum length of a query string?
What is the maximum length of a registered COM class?
What is the maximum length for a string data type in MongoDB used with Ruby?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK