Patent ID: 7984159

Claim:
A server apparatus that maintains a connection between a first terminal and a second terminal, transmits a message received from the first terminal to the second terminal by way of a relaying device, receives a message transmitted from the second terminal by way of the relaying device, and transmits the message to the first terminal, the server apparatus comprising: a resource controlling unit configured to control a resource usage state; a receiving unit configured to receive from the first terminal a first message containing a first condition for maintaining the connection between the first terminal and the second terminal; a determining unit configured to determine a second condition to be accepted to maintain the connection, based on the first condition contained in the received first message and the resource usage state; an adding unit configured to add the second condition to the first message; a transmitting unit configured to transmit the first message to which the second condition is added, to the relaying device to transmit the first message to the second terminal; and a maintaining unit configured to maintain the connection under the determined second condition.