Multithreading high-performance http agency realizing method and system

An implementation method and system implementation technology, which is applied in the field of Internet information transmission, can solve problems such as the inability to effectively handle extremely large concurrent requests, and achieve the effect of improving concurrent processing capabilities

Active Publication Date: 2015-01-28
UNIV OF SCI & TECH OF CHINA
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] The purpose of the present invention is to provide a multi-threaded high-performance http proxy implementation method and system, which effectively solves the problem that the existing http proxy implementation scheme cannot effectively handle extremely large concurrent requests

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
  • Multithreading high-performance http agency realizing method and system
  • Multithreading high-performance http agency realizing method and system
  • Multithreading high-performance http agency realizing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] figure 1 It is a flowchart of a method for implementing a multi-threaded high-performance http proxy provided by Embodiment 1 of the present invention. Such as figure 1 As shown, the method mainly includes the following steps:

[0042] Step 11. Receive a connection request from the client through the specified address. After successful connection, create a client socket according to the descriptor carried in the connection request and store it in the hash table, and the client socket And its EPOLLIN event is registered in epoll.

[0043] Step 12. When the EPOLLIN event of the client is triggered, the http request from the client is read through the client socket, and the http request is stored locally and then parsed. If the parsing is successful, but the local cache misses, send The server initiates a connection. After successfully connecting to the server, a corresponding server socket is generated and stored in the hash table, and the server socket and its EPOLLOU...

Embodiment 2

[0063] Embodiment 2 of the present invention provides a multi-threaded high-performance http proxy implementation system, which can be deployed in a proxy server connected between a client and a server pool. Such as Figure 7 As shown, the system mainly includes:

[0064] Receive connection module 71, be used for receiving the connection request from client through specified address, after successful connection, create client socket according to the descriptor carried in this connection request and store in hash table, and this client The end socket and its EPOLLIN event are registered in epoll;

[0065] The read request module 72 is used to read the http request from the client through the client socket when the EPOLLIN event of the client is triggered, and store the http request locally and then parse it. If the parsing is successful, but the local Initiate a connection to the server when the cache misses. After successfully connecting to the server, generate a correspondi...

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 multithreading high-performance http agency realizing method and system. According to the scheme, an epoll event notification mechanism and the multithreading technology are combined to be used, through reasonable modeling and design, the concurrent processing capacity of http agency is greatly improved, and the problem that an existing http agency realizing scheme can not effectively process especially-large concurrent requests is effectively solved.

Description

technical field [0001] The present invention relates to the field of Internet information transmission, in particular to a multi-threaded high-performance http proxy implementation method and system Background technique [0002] In the past ten years, the Internet has developed rapidly, and the number of Internet users has also expanded rapidly, which poses a great challenge to the http (Hypertext Transfer Protocol) proxy server under the traditional C / S (client / server) mode. The server needs to have a large enough concurrent processing capacity to meet the needs of daily users. With the continuous increase of Internet usage, the requirements for such concurrent processing capacity are also increasing, while the traditional http proxy server has a high level of concurrent processing capacity. did not keep pace. [0003] Regarding how to improve the concurrent service capability of the http proxy server to meet the needs of users in large concurrency scenarios, there are man...

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
CPCH04L67/02H04L67/566
Inventor 陆世亮朱明
Owner UNIV OF SCI & TECH OF CHINA
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