Patent ID: 7460556

Claim:
A computer-implemented method for a server application to manage connection keep-alives, the method comprising the steps of: (A) enabling a keep-alive mechanism that keeps a connection to a client open according to a defined keep-alive specification; (B) monitoring number of clients and average number of requests per client for the server application; (C) automatically enabling the keep alive mechanism when the number of clients is in excess of a first predetermined threshold; (D) automatically enabling the keep alive mechanism when the number of requests per client is in excess of a second predetermined threshold; (E) automatically disabling the keep alive mechanism when the number of clients is below the first predetermined threshold and the average number of requests per client is below the second predetermined threshold; (F) setting the keep-alive specification to a minimal value when the number of clients is above the first predetermined threshold and the average number of requests per client is below the second predetermined threshold; (G) setting the keep-alive specification to a maximum value when the number of clients is below the first predetermined threshold and the average number of requests per client is above the second predetermined threshold; and (H) setting the keep-alive specification to a midrange value between the minimal value and the maximum value when the number of clients is above the first predetermined threshold and the average number of requests per client is above the second predetermined threshold.