Patent ID: 8326916

Claim:
A computer-readable non-transitory recording medium that stores a relay program for relaying a communication between a client and a server, the relay program making a computer execute: monitoring packets communicated between the client and the server for each TCP session; determining, using information extracted from the packets monitored, whether a TCP session established between the server and the client may be maintained without depending on an application once the server is to be switched to a standby server, wherein the determining includes, determining whether the TCP session may be maintained or not, without depending on the application once the server is to be switched to the standby server, based on a policy, the policy differing from one application to another and including information necessary for extracting a length and an identifier of a message from a packet; and executing a process depending on a result of determination at the determining, wherein the process includes maintaining the TCP session once it is determined that the TCP session may be maintained; and disconnecting the TCP session once it is determined that the TCP session may not be maintained.