commit | 95c316856d18d6088b72aac5a0803b4a023bc1bb | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Fri Aug 10 21:54:23 2018 +0300 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Fri Aug 10 21:54:23 2018 +0300 |
tree | 328f1b4cd6fecc68cd8e6b1516624533b728b711 | |
parent | 0edb3e919343b88f50c3deea0da2a2f9f9b2edfa [diff] |
Upstream keepalive: keepalive_timeout directive. The directive configures maximum time a connection can be kept in the cache. By configuring a time which is smaller than the corresponding timeout on the backend side one can avoid the race between closing a connection by the backend and nginx trying to use the same connection to send a request at the same time.