I'm running this script under nginx+apache. It sends large data packages (split into portions) to a remote server, calling cURL execution in cycle. Strange thing to me is, that after timeout I receive 504 error into browser (captain), but script continues to run anyway!
I've tested it - and script is sending all the data I require it to send, so technically, it's not a problem. But I think that any unusual stuff like this might have it's consequences in future.
I would appreciate any knowledge that more experienced developers might share on this issue.