Created attachment 1414943 [details] ruby keep-alive test script Description of problem: Setting ROUTER_SLOWLORIS_HTTP_KEEPALIVE to some number of seconds, e.g. 10s makes HAProxy close client connection after 15s. If the setting is 7s, then connection is closed after 12s of inactivity. Version-Release number of selected component (if applicable): 3.9.14-1.git.0.4efa2ca.el7.x86_64 How reproducible: always Steps to Reproduce: 1. set variable in router dc ROUTER_SLOWLORIS_HTTP_KEEPALIVE=10s 2. wait router to restart 3. create some app in a user project 4. test keep-alive: 4.1. connect server 4.2. execute get command 4.3. wait Actual results: connection closes after 15 seconds Expected results: connection closes after 10 seconds Additional info: Please check attached ruby script to see how this is being tested.
Created attachment 1414944 [details] ruby keep-alive test script
Some of the timeouts are additive, in this case ROUTER_SLOWLORIS_HTTP_KEEPALIVE which adjusts "timeout http-keep-alive" triggers and then haproxy still waits on the "tcp-request inspect-delay" which we set to 5s I will update the docs mentioning that some of the timeouts interact so they may not be exactly as set
Thank you, we will adjust our tests according to docs when ready.
https://github.com/openshift/openshift-docs/pull/8900
Checked the document PR, Verified this bug