Thanks for your answer !
Ok, then that was a really strange coincidence that every timeout was followed by a restart 😃
It's not happening again so I was wrong on that !
My code can handle Nginx restart as in it won't break anything, just cancel the current request.. I can deal with occasional restarts as they look like quite fast and seamless. And my project is just a developement demo..
So is it possible to increase the timeout ?