My Application works perfectly fine untill I send multiple (2 or more) request simultaneously. As soon as I send multiple requests Express throws
Error: Can't set headers after they are sent.
Its a long code, where its takes almost 2 seconds to execute complete request . If I send multiple requests (where response time is pretty fast) i dont face this issue?
I know the reason why and when express throws 'Can't set headers' error. My main point is to understand how I can debug my application in this scenario as everything works fine incase of single request and it breaks down incase of multiple requests.