mikeal/request — Issue #100: EMFILE, Too many open files
Author: NHQ
Created: 2011-10-31 23:42:05+00:00
State: open

I realize this may not be a request-specific issue, but I have am getting two errors from trying to utilize the module.

The first was

FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory

So I changed the request options to

pool : {maxSockets : 10}

and then started getting the title error

EMFILE, Too many open files

Here is the little app making all the problems: https://gist.github.com/0f496e2ba2ab12786de0

Basically what happens is one call is made which returns an array of values, each of which require a new call. That is why I set an interval between calls. tho it didn't help :(