See the backlog parameter mentioned here:
All listen() methods can take a backlog parameter to specify the maximum length of the queue of pending connect