hi
On Mar 15, 10:08 am, annas wrote:
> How to implement pipelining in http request processing ?
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
G
I don't know node.js very well . Browsers use pipeline feature .using
this feature browsers can handle multiple requests .
I have list of resources and generate http request for each
resources.
These requests are now processed using http.request() within a loop,
so the response of each requests
sorry, the loop means 'for' loop.
I give some code (Please correct me if I am mistaken)
{
. .. ..
for (var i = 0 ; i < resourceLinks.length ; i++)
{
resourceURL = resourceLinks[i];
Info(resourceURL,i);
}
..
}
function Info(resUrl,i)
{
..
var
sorry for the mistake , the loop means 'for' loop.
I give some code (Please correct me if I am mistaken)
app.get('/test', function(req, res){
. .. ..
for (var i = 0 ; i < resourceLinks.length ; i++)
{
resourceURL = resourceLinks[i];
Info(resourceURL , i );
}
> These requests are now processed using http.request() within a loop, so
the response of each requests are came in different order.
It is not a loop. It is a callback function and it is called on every new
request, without waiting.
The major feature of node is that nothing waits very long for
On Thu, Mar 15, 2012 at 10:12 AM, annas wrote:
> If this requirements will not achieve by using above method please
> tell good method .
First you have to understand this:
http://docs.nodejitsu.com/articles/getting-started/control-flow/what-are-callbacks
Then you could use/study the async-libra