set maxSockets and fix around timeout