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

Method of processing hyper text transport protocol (HTTP) requests and device

A hypertext transmission and protocol technology, applied in the network field, can solve problems such as interruption of information transmission between application clients and application servers, application server crashes, etc., and achieve the effect of reducing overhead and improving carrying capacity

Active Publication Date: 2014-07-02
BEIJING FEINNO COMM TECH
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Since the application server in the prior art performs synchronous processing on the received HTTP requests, when the number of received HTTP requests rises sharply, the number of opened threads also rises, and the rising number of threads will eventually exhaust the application server resources, causing the application server to crash, thereby interrupting the transmission of information between the application client and the application server

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
  • Method of processing hyper text transport protocol (HTTP) requests and device
  • Method of processing hyper text transport protocol (HTTP) requests and device
  • Method of processing hyper text transport protocol (HTTP) requests and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] The embodiment of the present invention provides a method for processing hypertext transfer protocol requests, see figure 1 , the method flow includes:

[0046] Step 101: receiving multiple HTTP requests, the number of HTTP requests is greater than the number of opened processing threads;

[0047] Step 102: Obtain the network data flow corresponding to each HTTP request, and analyze the network data flow corresponding to each HTTP request, and obtain the analysis data corresponding to each HTTP request;

[0048] Step 103: After obtaining the parsed data, distribute the parsed data corresponding to each HTTP request to the processing queue of the corresponding processing thread, and call the corresponding processing thread to process the parsed data in the processing queue.

[0049] Further, the analysis data corresponding to each HTTP request is distributed to the processing queue of the corresponding processing thread, including:

[0050] For the analysis data corres...

Embodiment 2

[0062] The embodiment of the present invention provides a method for processing a hypertext transfer protocol request. For the convenience of description, take client A sending an HTTP request, and the device B processing the hypertext transfer protocol request receiving and processing the HTTP request as an example. The methods provided in the examples are described in detail. see figure 2 , the method flow includes:

[0063] Step 201: receiving multiple HTTP requests, the number of HTTP requests is greater than the number of opened processing threads;

[0064] Specifically, the specific implementation manner of receiving the HTTP request can be realized according to the existing receiving manner, for example, receiving multiple HTTP requests together and caching the multiple HTTP requests in the storage medium, which is not specifically limited in this embodiment. Wherein, the storage medium may specifically be a read-only register. Of course, the type of the storage medi...

Embodiment 3

[0088] An embodiment of the present invention provides a device for processing a hypertext transfer protocol request, which is used to execute the method provided in the first or second embodiment above, see image 3 , the device consists of:

[0089] Receiving module 31, is used for receiving a plurality of HTTP request, and the quantity of HTTP request is greater than the quantity of the processing thread that opens;

[0090] An acquisition module 32, configured to acquire a network data flow corresponding to each HTTP request received by the receiving module 31;

[0091] The analysis module 33 is used to analyze the network data stream corresponding to each HTTP request obtained by the acquisition module 32, and obtain the analysis data corresponding to each HTTP request;

[0092] The distribution module 34 is used to distribute the analysis data corresponding to each HTTP request analyzed by the analysis module 33 to the processing queue of the corresponding processing th...

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 of processing hyper text transport protocol (HTTP) requests and a device, and belongs to the technical field of networks. The method comprises steps of receiving a plurality of HTTP requests, acquiring a network data flow corresponding to each HTTP request and analyzing the network data flow corresponding to each HTTP request to obtain the analyzed data corresponding to each HTTP request, sending the analyzed data corresponding to each HTTP request to the corresponding processing queue of a processing thread after the analyzed data are obtained and calling the corresponding processing thread to process the analyzed data in the processing queue. Through sending the analyzed data corresponding to a HTTP request to the corresponding processing queue of the processing thread and calling the corresponding processing thread to process the analyzed data in the processing queue, the analyzed data can be processed smoothly when the number of the HTTP requests is larger than the number of started processing threads, the number of the processing threads does not grow linearly along with the growing of the number of the HTTP requests, and therefore, system overhead is reduced.

Description

technical field [0001] The invention relates to the field of network technology, in particular to a method and device for processing hypertext transfer protocol requests. Background technique [0002] With the vigorous development of Internet technology, applications on the Internet are becoming more and more abundant, and users can quickly obtain information through various applications installed on application clients. During the interaction between the application client and the application server, the application client will send HTTP (Hyper text Trans port Protocol, hypertext transfer protocol) requests to the application server, and when the application server receives a large number of HTTP requests, in order to ensure The information between the application client and the application server can be transmitted smoothly, and how to process a large number of HTTP requests has become an urgent problem to be solved. [0003] In the prior art, after the application server...

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/08
Inventor 王延维
Owner BEIJING FEINNO COMM TECH
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