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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com