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

Control method for socket connection pool

A socket connection and control method technology, applied in electrical components, transmission systems, etc., can solve the problems of wasting the number of system sockets and wasting socket time, and achieve the effect of saving process time and improving performance

Inactive Publication Date: 2013-12-11
ALLYES NETWORK SCI & TECH SHANGHAI
View PDF4 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Aiming at the problem that a large number of sockets are generated by the SSP terminal in the existing axcore and rtbclient communication to waste the number of system sockets and the time of wasting the socket connection process, the present invention proposes a socket connection pool control method

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
  • Control method for socket connection pool
  • Control method for socket connection pool
  • Control method for socket connection pool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] figure 1 A schematic diagram showing an implementation solution of a method for controlling a socket connection pool according to the first embodiment of the present invention. Those skilled in the art understand that the socket connection pool described in this embodiment is preferably applied to communication components that require multiple communications, such as communications between a server and a client, or direct communications between multiple clients. Specifically, in this embodiment, a connection pool must first be established. Preferably, those skilled in the art understand that all the established sockets in the connected state are stored in a container, and when socket communication is required, one is taken out of the container for use, and when the use is completed Put back in the container.

[0019] Further, preferably, those skilled in the art understand that, in order to realize the control method of the socket connection pool, step S110 is first p...

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 control method for a socket connection pool. The method comprises the following steps: (1) receiving and obtaining request information of sockets in the connecting pool, (2) judging whether the free sockets exist in the connection pool or not, and (3) allocating the sockets to a request corresponding to the request information if the free sockets exist. According to the method, frequency establishing of socket descriptors is avoided, so that the sockets are saved for a system. Meanwhile, by the adoption of the socket connection pool, the process time of connection establishment after the socket descriptors are established each time is saved, and therefore performance is improved.

Description

technical field [0001] The invention relates to a socket connection pool control method, especially with the background of communication between Axcore and rtbclient, and in particular relates to a control method for unified domination and management of sockets after a large number of sockets are generated at the ssp server end. Background technique [0002] In the communication between Axcore and rtbclient, when a large number of users visit, short connections will be used on the SSP server side, resulting in frequent creation of socket descriptors. Since the socket descriptor actively closes the terminal, a TIME_WAIT state will be generated. This state may change from From half a minute to two minutes, depending on the system. While in the TIME_WAIT state, this socket descriptor is unavailable, starving the system of sockets. [0003] To solve the above problems, we adopt the long-term connection scheme, that is, the created socket descriptor is not actively closed, as lo...

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): H04L29/06H04L29/08
Inventor 程君
Owner ALLYES NETWORK SCI & TECH SHANGHAI
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