Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Long connection recovery method, system and device, electronic equipment and storage medium

A long connection and reconnection technology, applied in the Internet field, can solve the problems of long connection and short time, sudden increase of request concurrency, long time disconnection, etc.

Pending Publication Date: 2020-05-22
TAIKANG LIFE INSURANCE CO LTD
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

During the long-term connection maintenance period, the long-term connection may be disconnected for a short time or a long time due to various reasons
In related technologies, when the long connection between the client and the server is disconnected, the client sends a large number of reconnection requests to the server at the same time in order to avoid other clients with long connection disconnection, resulting in The number of concurrent requests increases sharply. The client usually initiates a reconnection request to the server after a fixed waiting period
However, when multiple clients adopt this reconnection strategy at the same time, the server side will still receive a surge of concurrent large reconnection requests, and cannot respond to the reconnection requests in time

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
  • Long connection recovery method, system and device, electronic equipment and storage medium
  • Long connection recovery method, system and device, electronic equipment and storage medium
  • Long connection recovery method, system and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.

[0054] In the field of Internet technology, a client running on a terminal device usually establishes a stable long-term connection with a server, and the long-term connection can be maintained for hours, days, months, or even years. During the long connection maintenance period, the client can receive the information pushed by the server in real time, such as news information, hot news information, advertisement information, notification information, order informatio...

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 embodiment of the invention provides a long connection recovery method, system and device, electronic equipment and a storage medium, and aims to relieve the high concurrency condition of a reconnection request on a server side and improve the long connection recovery efficiency. The method is applied to a client, and the method comprises the following steps: continuously detecting whether thelong connection between the client and a server is disconnected or not; under the condition that the long connection is not disconnected, receiving and storing a preset time interval sent by the server through the long connection; under the condition that the long connection is disconnected, initiating a first reconnection request to the server in response to the disconnection of the long connection, and determining whether the first reconnection request enables the long connection to be recovered or not; under the condition that the long connection is not recovered by the first reconnectionrequest, randomly determining a waiting time length in the stored preset time interval; after the waiting time length, initiating a secondary reconnection request to the server.

Description

technical field [0001] The embodiments of the present application relate to the technical field of the Internet, and in particular to a method, system, device, electronic equipment, and storage medium for restoring a persistent connection. Background technique [0002] With the development of Internet technology and the popularization of terminal devices, more and more users participate in Internet information interaction activities through terminal devices. Currently, a relatively popular way of participation is: the user installs the client on the terminal device, and establishes a persistent connection communication with the server through the client, so that the information pushed by the server can be received in real time. [0003] Among them, long connection is a concept opposite to short connection. A short connection means that the two parties in the communication establish a connection when there is a need for data interaction, and disconnect the connection after t...

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
IPC IPC(8): H04L29/08
CPCH04L67/14H04L67/145
Inventor 李振鹏汪祥
Owner TAIKANG LIFE INSURANCE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products