NodeJS stops responding after 11 requests
    http.createServer(function(request, response) {
	console.log("New request :"+request.url);
	var found = false;
	for(var i= 0; i < requests.length; i++){
		match = requests[i];
		if(match.method == request.method && request.url.match(match.regexp))
		{
			console.log("Matched request: "+match.url);
			pg.connect(databaseUrl, function(error, client) {
				if(error)
					processError(response, error);
				else
					match.action(client, request, response);
			});
			found = true;
			break;
		}
	}
	if(!found)
		processError(response, "Request url does not exist: "+request.url);
    }).listen(3000);
    sys.puts("Server running... waiting for requests");

Hi everyone. I'm stuck with this code. Whenever I call 11 times the same request, nodejs stops responding and does not even logs "New request: "+request.url.
Anyone has an idea of what's going on ?

Thanks a lot.
NodeJS stops responding after 11 requests
===

    http.createServer(function(request, response) {
	console.log("New request :"+request.url);
	var found = false;
	for(var i= 0; i < requests.length; i++){
		match = requests[i];
		if(match.method == request.method && request.url.match(match.regexp))
		{
			console.log("Matched request: "+match.url);
			pg.connect(databaseUrl, function(error, client) {
				if(error)
					processError(response, error);
				else
					match.action(client, request, response);
			});
			found = true;
			break;
		}
	}
	if(!found)
		processError(response, "Request url does not exist: "+request.url);
    }).listen(3000);
    sys.puts("Server running... waiting for requests");

Hi everyone. I'm stuck with this code. Whenever I call 11 times the same request, nodejs stops responding and does not even logs "New request: "+request.url.
Anyone has an idea of what's going on ?

Thanks a lot.