Nginx connection time out

0
My project is run an an AWS ECS instance and does multiple rest calls that some times can contain large data sets.  When the call extends the beyond a minute the container throws this error and dies:   [error] 591#0: *959 connect() failed (111: Connection refused) while connecting to upstream, client: xxx.xx.xxx.xxx, server: _, request: "GET / HTTP/1.1", upstream: "http://xxx.x.x.x:xxxx/", host: "xxx.xx.xxx.xxx:xxxx"   From what I can read nginx has a default connection timeout of 60 seconds and looking into the cloud foundry build pack i can’t see that this value has changed in the nginx.conf.j2.    Now before i jump into something that can be a massive time sink.  Has anybody experienced this issue and is there a better method of solving this without tampering with the build packs?
asked
0 answers