Application program heartbeat processing method, device, electronic device and storage medium
A technology of an application program and a processing method, which is applied in the field of communication, can solve problems such as inability to consume resources and balance the timeliness of connection detection, and achieve the effects of saving resource consumption, balancing resource consumption, and balancing the timeliness of connection detection
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0037] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
[0038] The characteristic of IM application program is "timely", almost all IM application programs realize timeliness through TCP long connection combined with heartbeat mechanism. The reason for using TCP long connection is that TCP can ensure the integrity, timely and reliable sending and receiving of messages in the connected state, and the reason for using heartbeat is to detect the availability of TCP link. In practical applications, the following factors will affect the survival of TCP long connections, for example:
[0039] 1. NAT timeout; most mobile wireless network operators will eliminate the corresponding item of the link in the NAT table when there is no data communication on the link for a period of time, causing the link to be interrupted. The long connection heartbeat interval must...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


