The invention discloses an
application server. The
application server comprises a memory, a processor, and a
heartbeat detection
system which is arranged on the memory and can run on the processor. When the
heartbeat detection
system is executed by the processor, the following steps are implemented: when a
heartbeat packet transmitted by a mobile terminal
client is received, inquiring whether
heartbeat detection records of the mobile terminal
client are stored in an
application server memory being in a long connection with the mobile terminal
client or not; if the
heartbeat detection records are stored, updating the
heartbeat detection records according to the received heartbeat packet;
polling the heartbeat detection records stored in the application
server memory at a preset frequency, and determining whether abnormal heartbeat detection records exist in the heartbeat detection records or not; and if so, deleting the abnormal heartbeat detection records, and breaking the long connection between the mobile terminal client corresponding to the abnormal heartbeat detection records and an application
server. Through adoption of the application
server, the long connection can be managed more flexibly.