It's likely that you're simply reaching some internal maximum number of connections. As @Barmar pointed out in a comment, you're not actually ending your responses. Change response.end; to response.end(); and it's likely to work as expected.
response.end;
response.end();