9

What is the maximum length of nodejs execFile callback params & ldquo; stdou...

 2 years ago
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;

advertisements

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 valid email address? Is it defined by any standard?[UPDATED] The correct answer of 254 has now been accepted by the IETF following the erratum I submitted here. You can get a full diagnosis of any given address here. T

What is the maximum length of a URL that can be opened in a J2ME browser?

What is the maximum length URL? This is may be handset dependent; on a desktop, it is definitely browser dependent, as discussed in this question. I am interested in specifications or references as much as empirical data. My particular usecase is pas

What is the maximum length of the browser URL for Window.Open

This question already has an answer here: What is the maximum length of a URL in different browsers? 16 answers I have this GWT code that opens a new browser window to show a text file. Window.open("data:text/plain;base64," + Base64.byteArrayToB

What is the maximum length of a thrust notification alert message?

What is the maximum length of the alert text of an iOS push notification? The documentation states that the notification payload has to be under 256 bytes in total, but surely there must be a specific character limit for the alert text.The real limit

What is the maximum length of a facebook name?

What is the maximum length of a facebook name, the one you get in the parameter "name" from the graph API.Maximum length of a Facebook username is currently 50 characters. While trying to create a "really long name" as @BK suggested, t

what is the maximum length of varchar (n) in postgresql 9.2 and what is the best use of varchar (n) or text?

Hi I am using postgresql 9.2 and i want to use varchar(n) to store some long string but i doesn't know that what is the maximum length of character which varchar(n) supports. and which one is better to use so could you please suggest me? thankstl;dr:

What is the maximum length of a text box in SSRS

I need to know the maximum length of a textbox in ssrs. How much data can it accomodate?The max length is 32k.

What is the maximum length of google drive api token?

I have an django application which gets the google drive token from front-end to be able to download the file from google drive. Then stores the token in the database. I used the 100 char field for storing the token, but starting from database I get

What is the maximum length of a Youtube video ID?

I'm developing an application that displays youtube videos. I want to store the video id's in a database, but because there are going to be a lot of videos, I want to minimize the required space, so does anyone know the maximum length of a video id o

What is the maximum length of an NSString object?

What is the maximum sized string that can be held in a NSString object? Does this change dynamically?I would assume the hard limit for NSString would be NSUIntegerMax characters, since NSString's index and size-related methods return an NSUInteger. S

What is the maximum length of a byte instruction for the IBM 8086 PC?

the maximum length of an instruction in bytes for the 8086 based IBM PCFor 8086 Microprocessor, 15 is the maximum length. positions: 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15

What is the maximum length of a query string?

I'm using HTTP requests in my program to pass data via a querystring to a web-based status page. The requests are of the form: http://www.example.com/poststatus.asp?ID="FRED"&widgetscompleted=1234&...parameterN=valueN The ASP page parses

What is the maximum length of a registered COM class?

When objects get added to the Windows Registry, they show up like so: MyNamespace.MyType I seem to remember running into issues with my namespaces and classnames being too long when trying to register them for COM. Is there a maximum length limitatio

What is the maximum length for a string data type in MongoDB used with Ruby?

I wasn't able to find any information on the max length for a string data type in MongoDB on the main mongodb.org site. I'm coming from a relational database background and there are usually max lengths. Thank you!This other question should answer yo

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK