Unlock instant, AI-driven research and patent intelligence for your innovation.

A method to maintain heartbeat connection with gateway and chat server

A gateway server, heartbeat connection technology, applied in the field of network communication, can solve the problems of reduction, excessive heartbeat messages, and heavy pressure on the background server to process heartbeat messages.

Active Publication Date: 2019-07-09
WUHAN DOUYU NETWORK TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the above defects or improvement needs of the prior art, the present invention provides a method for maintaining a heartbeat connection, a gateway and a chat server. Excessive heartbeat messages when there are too many terminals lead to too much pressure on the background server to process heartbeat messages

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method to maintain heartbeat connection with gateway and chat server
  • A method to maintain heartbeat connection with gateway and chat server
  • A method to maintain heartbeat connection with gateway and chat server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

[0031] like figure 1 As shown, the present invention provides a method for maintaining a heartbeat connection. The gateway server receives the heartbeat message (small packet data) from the client, and if the heartbeat message reaches a certain amount or the hoarding time reaches a certain duration, these small packet data are packaged A large collection of heartbeat messages is sent to the cha...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for maintaining a heartbeat connection, comprising: a gateway server receiving heartbeat messages sent by a client connected to the gateway server; when a preset condition is met, the gateway server packs the received heartbeat messages into one heartbeat data packet, and send the heartbeat data packet to the chat room server; the gateway server receives the heartbeat response data packet returned by the chat room server; the gateway server parses the heartbeat response data packet, and sends the heartbeat response message obtained by parsing to the corresponding client. Between the gateway server and the chat server, between the chat server and the status server, there is no need to maintain the online status of each mental message sent by the client, but by packing a certain number of heartbeat messages or heartbeat messages within a certain period of time In this way, the online status of the client is maintained, and the pressure on each server to process heartbeat messages is reduced.

Description

technical field [0001] The invention belongs to the technical field of network communication, and more specifically relates to a method for maintaining a heartbeat connection, a gateway and a chat server. Background technique [0002] With the development of Internet applications, there are more and more applications for online communication on the Internet. For example, most online communication applications are based on TCP persistent connection services. In order to manage these long connections and ensure that useless connections are destroyed in time to release resources to serve users in need, the background server of online communication applications needs to communicate with customers end to keep the heartbeat. Specifically, the client needs to send a heartbeat message to the background server at intervals (for example, set to 45 seconds) to ensure the subsequent availability of the corresponding connection between the client and the background server. [0003] Whe...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/58H04L12/26H04L1/16
CPCH04L1/1607H04L43/10H04L51/046H04L51/52
Inventor 杨鹏
Owner WUHAN DOUYU NETWORK TECH CO LTD