With no persistence or keep-alive, the server closes a connection based on the setting defined in the Server Profile HTTP tab - Connection Termination With <option:FIN or RST>.
With persistence or keep-live, closing a connection depends on the Client or the Server to reach the Max. Request/Conn value first.
- if the Server reaches the Max Request/Conn, it will close the connection based on the Server Profile HTTP tab setting.
- if the Client reaches the Max Request/Conn, it will close with a FIN
- the Client will close with a RST when it reaches the end of action and it has not reached the Max Request/Conn.
Examples 1 - setup server to close connection with FIN: A test with 10 actions and server has Max. Requests/Conn = 10, the server will send RST.
1 get http://11.21.100.1 1 get http://11.21.100.2 1 get http://11.21.100.3 1 get http://11.21.100.4 1 get http://11.21.100.5 1 get http://11.21.100.6 1 get http://11.21.100.7 1 get http://11.21.100.8 1 get http://11.21.100.9 1 get http://11.21.100.10
If the server Max Requests/Conn = 1, the server will send FIN.
Example 2 - setup client to close connect with FIN:
With the same number of actions as in example 1, the server Max Request/Conn = 10; the client Max Request/Conn = 1.
The client will send FIN on first 9 connections. On the 10th connection, it will send RST because it reaches the end of the action list.