I am using config as in subject. Everything works OK, Idle TCP connections are reused. Only problem is that Apache2 server is closing TCP connection with SSL session after 20s when no traffic is reaching server.
That is not related to Keep-Alive settings on BIG-IP or Apache2 server, the same settings are used for HTTP traffic and all timeouts on BIG-IP or server are respected, idle connection is closed after 298s (Keep-Alive Timeout set on Apache2 server). Verified by trace - server is sending FIN-ACK to BIG-IP.
So it seems that there is some SSL related timeout used by Apache2 - problem is I can’t find any info how to change it - any help appreciated.
Check the setting of SSLSessionCacheTimeou in your Apache server.
"This directive sets the timeout in seconds for the information stored in the global/inter-process SSL Session Cache, the OpenSSL internal memory cache and for sessions resumed by TLS session resumption (RFC5077)."
I am far from Apache guru :-(, just had it enabled on my test system. I guess it should work OK with F5 after fixing bugs (as in mentioned link) but if you say it should not be used with F5 I will try to disable it and see if it will fix an issue.
I noticed another strange situation caused by this mod (this time for HTTP traffic):
Send single request to server - connection will be closed according to server KeepAlive Timeout
Send multiple requests to the same server - again 20s issue is here