Heartbeat interval adjusting method, server, client terminal and communication system
暂无分享,去创建一个
The invention provides a heartbeat interval adjusting method, a server, a client terminal and a communication system, wherein the heartbeat interval adjusting method comprises the following steps: after the current connection between the server and the client terminal is established successfully, the server receives the heartbeat negotiation message sent by the client terminal; the heartbeat negotiation message carries a factor value used for characterizing the factor of the previous disconnection and the heartbeat interval value finally used in the previous connection; when the server determines that the previous connection is disconnected owning to link impasse or network unusualness according to the factor value, the heartbeat interval value is gradually reduced and is sent to the client terminal by the negotiation response message; and when the server determines that the previous connection is disconnected owning to phone calling, application halting or application shifting according to the factor values, the heartbeat interval value is gradually increased and is sent to the client terminal by the negotiation response message. The invention has the advantages of effectively reducing the electric energy consumption of the client terminal.