Reputation: 7647
I am uploading a document as a MultipartFile upload via a rest api. There is a nginx reverse proxy in front the application server which has proxy_read_timeout as 60s.
But a request which takes over 2m 7s got success. Bases on proxy_read_timeout should not I except to get a time out for any request where response time gets over 60s?
Upvotes: 1
Views: 7181
Reputation: 15662
Read the docs carefully:
The timeout is set only between two successive read operations, not for the transmission of the whole response. If the proxied server does not transmit anything within this time, the connection is closed.
So any acknowledge for the received packet of data from the upstream will reset the proxy_read_timeout
timer.
Upvotes: 5