# US 2019/0245914 A1 · Method and device for processing persistent connection establishment request

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0245914 A1
- Document ID: US20190245914A1
- Status: Published application
- Kind: A1
- Application number: 16/328,943
- Filed: 2017-08-02
- Published: 2019-08-08
- Earliest claimed: 2017-07-07
- Assignees: Wangsu Science & Technology Co., Ltd.
- Applicants: Wangsu Science & Technology Co., Ltd.
- Inventors: Shengshui YU; Zhangkun LIN
- Web page: https://patentgrep.com/patent/US20190245914A1

## CPC

- H04L 67/141: Setup of application sessions (admission control or resource allocation in data switching networks H04L47/70)
- H04L 67/1008: based on parameters of servers, e.g. available memory or workload (monitoring of computer activity G06F11/30)
- H04L 69/162: {involving adaptations of sockets based mechanisms (secure socket layer H04L63/168)}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Method, server, and storage medium for processing a persistent connection establishment request are provided. The method includes: receiving the persistent connection establishment request sent by a client; determining a first processing process with a lowest number of current persistent connections, based on a locally stored number of current persistent connections of each processing process; and using the first processing process to process the persistent connection establishment request.

## Claims

### Claim 1

A method for processing a persistent connection establishment request, comprising:
receiving, by a server, the persistent connection establishment request sent by a client; and
determining, by a server, a first processing process with a lowest number of current persistent connections, based on a locally stored number of current persistent connections of each processing process, wherein the first processing process is used to process the persistent connection establishment request.

### Claim 2 (depends on 1)

The method according to claim 1, wherein receiving the persistent connection establishment request sent by the client comprises:
determining a second processing process based on a preset receiving order, and
receiving the persistent connection establishment request sent by the client through the second processing process.

### Claim 3 (depends on 2)

The method according to claim 2, further comprising:
using a SOCKET to forward the persistent connection establishment request to a managing process, by the second processing process; and
the determining of the first processing process with the lowest number of current persistent connections, based on the locally stored number of current persistent connections of each processing process, includes:
determining the first processing process with the lowest number of current persistent connections, by the managing process, based on the locally stored number of current persistent connections of each processing process.

### Claim 4 (depends on 1)

The method according to claim 1, after the receiving of the persistent connection establishment request sent by the client, further comprising:
if the persistent connection establishment request carries identification information of a third processing process, using the third processing process to process the persistent connection establishment request; and
the determining the first processing process with the lowest number of current persistent connections, based on the locally stored number of current persistent connections of each processing process, includes:
if the persistent connection establishment request does not carry any identification information of any processing process, determining the first processing process with the lowest number of current persistent connections, based on the locally stored number of current persistent connections of each processing process.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the determining of the first processing process with the lowest number of current persistent connections, based on the locally stored number of current persistent connections of each processing process, comprises:
determining a preset number of processing processes with the lowest number of current persistent connections, based on the locally stored number of current persistent connections of each processing process; and
acquiring identification information of the client carried in the persistent connection establishment request, and determining the first processing process with the lowest number of persistent connections established with the client, among the preset number of the processing processes.

### Claim 6

A server for processing a persistent connection establishment request, comprising:
a memory, configured to store program instructions for performing a method for processing the persistent connection establishment request; and
a processor, coupled with the memory and, when executing the program instructions, configured to:
receive a persistent connection establishment request sent by a client; and
determine a first processing process with a lowest number of current persistent connections, based on a locally stored number of current persistent connections of each processing process, wherein the first processing process is used to process the persistent connection establishment request.

### Claim 7 (depends on 6)

The device server according to claim 6, wherein the processor is further configured to:
determine a second processing process based on a preset receiving order, and receive the persistent connection establishment request sent by the client through the second processing process.

### Claim 8 (depends on 7)

The device server according to claim 7, wherein the processor is further configured to:
forward the persistent connection establishment request to a managing process, by the second processing process, using a SOCKET; and
determine the first processing process with the lowest number of current persistent connections through the managing process, based on the locally stored number of current persistent connections of each processing process.

### Claim 9 (depends on 6)

The device server according to claim 6, wherein the processor is further configured to:
after receiving the persistent connection establishment request sent by the client, if the persistent connection establishment request carries identification information of a third processing process, use the third processing process to process the persistent connection establishment request; and
if the persistent connection establishment request does not carry any identification information of any processing process, determine the first processing process with the lowest number of current persistent connections, based on the locally stored number of current persistent connections of each processing process.

### Claim 10 (depends on 6)

The device server according to claim 6, wherein the processor is further configured to:
determine a preset number of processing processes with the lowest number of current persistent connections, based on the locally stored number of current persistent connections of each processing process; and
acquire identification information of the client carried in the persistent connection establishment request, and determine the first processing process with the lowest number of persistent connections established with the client, among the preset number of the processing processes.

### Claim 11

(canceled)

### Claim 12

(canceled)

### Claim 13

A non-transitory computer-readable storage medium, containing program instructions for, when executed by a processor, performing a method for processing the persistent connection establishment request, the method comprising:
receiving the persistent connection establishment request sent by a client; and
determining a first processing process with a lowest number of current persistent connections, based on a locally stored number of current persistent connections of each processing process, wherein the first processing process is used to process the persistent connection establishment request.

### Claim 14 (depends on 13)

The storage medium according to claim 13, wherein receiving the persistent connection establishment request sent by the client comprises:
determining a second processing process based on a preset receiving order, and
receiving the persistent connection establishment request sent by the client through the second processing process.

### Claim 15 (depends on 14)

The storage medium according to claim 14, wherein the method further comprises:
using a SOCKET to forward the persistent connection establishment request to a managing process, by the second processing process; and
the determining of the first processing process with the lowest number of current persistent connections, based on the locally stored number of current persistent connections of each processing process, includes:
determining the first processing process with the lowest number of current persistent connections, by the managing process, based on the locally stored number of current persistent connections of each processing process.

### Claim 16 (depends on 13)

The storage medium according to claim 13, wherein after the receiving of the persistent connection establishment request sent by the client, the method further comprises:
if the persistent connection establishment request carries identification information of a third processing process, using the third processing process to process the persistent connection establishment request; and
the determining the first processing process with the lowest number of current persistent connections, based on the locally stored number of current persistent connections of each processing process, includes:
if the persistent connection establishment request does not carry any identification information of any processing process, determining the first processing process with the lowest number of current persistent connections, based on the locally stored number of current persistent connections of each processing process.

### Claim 17 (depends on 13)

The storage medium according to claim 13, wherein the determining of the first processing process with the lowest number of current persistent connections, based on the locally stored number of current persistent connections of each processing process, comprises:
determining a preset number of processing processes with the lowest number of current persistent connections, based on the locally stored number of current persistent connections of each processing process; and
acquiring identification information of the client carried in the persistent connection establishment request, and determining the first processing process with the lowest number of persistent connections established with the client, among the preset number of the processing processes.
