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

A method and system for releasing tcp connection resources

A technology for connecting resources and releasing the system, which is applied in the field of releasing TCP connection resources, can solve the problems of server system resource occupation, resource occupation, and inability to be used effectively, and achieve faster login speed, lower failure probability, and convenient use Effect

Active Publication Date: 2019-06-11
TCL CORPORATION
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is to provide a method and system for releasing TCP connection resources in view of the deficiencies in the prior art, so as to solve the problem that a large amount of resources are occupied for a period of time in the existing method for releasing TCP connection resources. Can not be used effectively, resulting in the problem that the resource usage of the server system is too high

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 and system for releasing tcp connection resources
  • A method and system for releasing tcp connection resources
  • A method and system for releasing tcp connection resources

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The present invention provides a method and system for releasing TCP connection resources. In order to make the purpose, technical solution and effect of the present invention clearer and clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0036] In the present invention, the terminal device refers to a mobile terminal, a smart electrical appliance, etc., for example, a mobile phone, a computer, a smart TV, and the like.

[0037] The content of the invention will be further described below by describing the embodiments in conjunction with the accompanying drawings.

[0038] See figure 1 and figure 2 , the release method of the TCP connection resource, which includes:

[0039] S1. After the terminal establishes a TCP connection with the ...

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 and a system for releasing TCP (Transmission Control Protocol) connection resources. The method comprises the steps that after a TCP connected is established between a terminal and a server side, the terminal sends a heartbeat packet to the server side at a periodic interval; if the server side does not receive the heartbeat packet sent by the terminal within a first predetermined time, a detection message is sent to the terminal by the server side; and when the server side does not receive a response message, the server side releases the TCP resources occupied by the terminal, wherein the response message is the response message of the detection messages. In the method, the server side can close the connection without waiting for two or three times of heartbeat timeout, so as to achieve the purpose of releasing the useless connection resources of the server side as soon as possible. Meanwhile, the failure probability of reconnection with the server after the terminal is restarted when being off the Internet and in power failures is reduced, the login speed of the terminal is increased, and the convenience is brought to the use of the user.

Description

technical field [0001] The invention relates to the technical field of communications, in particular to a method and system for releasing TCP connection resources. Background technique [0002] In the Internet field, the TCP (Transfer Control Protocol, Transmission Control Protocol) protocol is widely used, and most C / S server models use TCP connections for reliable communication. Even if the Web application adopts the Http protocol, it cannot be separated from the TCP protocol, because the Http protocol is an application layer protocol, and its underlying implementation still depends on the TCP protocol. The SOCKET connection at both ends of the TCP communication is uniquely determined by a quaternion, namely {terminal IP, terminal port, server IP, server listening port}. The server, usually its IP and listening port are unchanged during the service process, and the IP and port of different terminals are different. As a server, it needs to provide services to a large numb...

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): H04L29/08H04L29/06
CPCH04L67/143H04L69/161H04L69/163
Inventor 廖冬生
Owner TCL CORPORATION
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