Method and device for establishing long connection

A long connection and device technology, applied in the computer field, can solve the problems of long connection deadlock, unable to accommodate concurrent long connections, high resource overhead of service equipment, etc., to achieve the effect of reducing resource overhead

Active Publication Date: 2017-11-17
上海尚往网络科技有限公司
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of this application is to provide a method and device for establishing a long-term connection to solve the problem that in the prior art, the long-term connection with the client device is maintained by the service device, which causes the resource overhead of the service device to be too large and cannot accommodate There are a large number of concurrent long connections. At the same time, because there is no data packet communication for a long time in the long connection, the long connection is in a dead state, resulting in the problem that the long connection cannot be maintained.

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
  • Method and device for establishing long connection
  • Method and device for establishing long connection
  • Method and device for establishing long connection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The application will be described in further detail below in conjunction with the accompanying drawings.

[0035] figure 1 It shows a schematic flow chart of a method for establishing a persistent connection at the service device side according to one aspect of the present application. The method includes step S11, step S12 and step S13. Wherein, the step S11 disables the connection maintenance operation in the service device; the step S12 receives a persistent connection request sent from the client device, and establishes a persistent connection with the client device based on the persistent connection request; the step S13 receives the request from the client device The heartbeat packet sent by the client device sends heartbeat response information to the client device based on the heartbeat packet, so as to maintain the connection state of the persistent connection.

[0036] In the embodiment of the present application, by disabling the connection keeping operatio...

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 objective of the invention is to provide a method and device for establishing long connection. The connection maintaining operation in a service device is disabled to reduce the resource cost of long connection maintaining of the service device to support more concurrent long connection; a long connection request sent by a client device is received, and a long connection with the client device is established based on the long connection request; and a heartbeat bag sent by the client device is received, and heartbeat response information is sent to the client device based on the heartbeat bag to maintain the connection state of the long connection so as to support more concurrent long connection.

Description

technical field [0001] The present application relates to the computer field, and in particular to a technique for establishing a long connection. Background technique [0002] Transmission Control Protocol (Transmission Control Protocol, TCP) is a connection-oriented, reliable, byte stream-based transport layer communication protocol. Long connection is a kind of connection, usually used for frequent operation and point-to-point communication, such as real-time data communication between client device and server device. A long connection only needs to be established once, and after the connection is successful, it will generally last for a long time. Both parties will use the connection to communicate multiple times. Connections cause a waste of resources. [0003] In the prior art, after the client device and the service device initiate the establishment of a persistent connection, the client device and the service device establish a persistent connection to realize data...

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 Applications(China)
IPC IPC(8): H04W76/02G06F9/46
CPCG06F9/466H04W76/10
Inventor 鲍承伟万玉权胡靖
Owner 上海尚往网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products