This stack over flow issue is the socket.fs fault not this code.
It is contained in that it happens and is trapped as an error.
Frequency of the stack overflow is very low now that the socket time out is up to 2 seconds.