fix for response.on(end) called with no socket timeout generated