Forum Discussion
Landono, whilst the TCP idle timeout can play a part if it's shorter than the HTTP keepalive idle timeout, there isn't a direct relationship between it and the HTTP keepalive. If you drop the TCP keepalive to 2m and increase the HTTP keepalive to 5m, the lower of the two figures will apply.
You'll need to keep the TCP timeout to 5m/300s if you will use a 5m HTTP keepalive anywhere. I don't think the TCP value can be changed in an iRule unfortunately.
As the HTTP keepalive timeout is not negotiated between client and server, there's nothing an iRule can do to change this for a specific URL, this is something you need to configure on nginx. I'm only familiar with Apache but with that, you could globally increase the PHP specific timeout value.