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

Processing method and device for request timeout of hypertext transfer protocol

A technology of hypertext transmission and processing method, applied in the field of hypertext transmission protocol request timeout, can solve the problems of waste of resources and untimely HTTP request objects, and achieve the effect of reducing waste of resources and realizing asynchronous processing

Active Publication Date: 2014-07-09
BEIJING FEINNO COMM TECH
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Because the data of the receiving server is acquired in a synchronous manner, the requesting server must wait until the receiving server finishes processing the HTTP request before performing its own related operations every time the requesting server simulates the browser sending an HTTP request. The HTTP request object is not timely, resulting in a great waste of CPU (Central Processing Unit, central processing unit) resources

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
  • Processing method and device for request timeout of hypertext transfer protocol
  • Processing method and device for request timeout of hypertext transfer protocol
  • Processing method and device for request timeout of hypertext transfer protocol

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049]Embodiment 1 of the present invention provides a hypertext transfer protocol request timeout processing method, see figure 1 , the method flow includes:

[0050] Step 101: Send the second HTTP request to the receiving server, and detect whether there is an HTTP request object in the timeout state in the HTTP request objects stored in advance every preset time; if there is an HTTP request object in the timeout state, then execute step 102 ;

[0051] Wherein, the pre-stored HTTP request object is the HTTP request object of the sent first HTTP request and the HTTP request object of the second HTTP request;

[0052] Further, after sending the second hypertext transfer protocol HTTP request to the receiving server, the method also includes:

[0053] If the data corresponding to the first HTTP request returned by the receiving server is received, the HTTP request object of the first HTTP request is used as the HTTP request object to be destroyed, and the HTTP request object ...

Embodiment 2

[0071] The embodiment of the present invention provides a hypertext transfer protocol request timeout processing method. For the convenience of description, this embodiment combines the content of the above-mentioned embodiment 1, and takes the request server A to send an HTTP request and the receiving server B to receive the HTTP request as an example. Provides a detailed explanation of how HTTP request timeouts are handled. see figure 2 , the method flow includes:

[0072] Step 201: request server A to generate the HTTP request object of the first HTTP request and the HTTP request object of the second HTTP request;

[0073] For this step, before the requesting server A sends the HTTP request to the receiving server B, in order to facilitate sending and initializing the HTTP request, the requesting server A will generate the HTTP request object of the HTTP request. Wherein, the HTTP request object of the first HTTP request is the HTTP request object of the HTTP request sen...

Embodiment 3

[0102] An embodiment of the present invention provides a hypertext transfer protocol request timeout processing device, which is used to execute the method provided in the above embodiment and embodiment 2, see image 3 , the device consists of:

[0103] A sending module 31, configured to send a second HTTP request to the receiving server;

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 processing method and device for request timeout of a hypertext transfer protocol (HTTP) and belongs to the technical field of network. The method includes: sending a second HTTP request to a receiving server and detecting whether HTTP request objects in a timeout state exist in prestored HTTP request objects at every interval of a preset time; and if the HTTP request objects in the timeout state exist, taking the HTTP request objects in the timeout state as to-be-destroyed HTTP request objects and destroying the to-be-destroyed HTTP request objects. The device includes: a sending module, a detection module and a destruction module. In the processing method and device for the timeout of the HTTP, the HTTP request is sent while the HTTP request objects which are in the timeout state are destroyed so that processing on the request timeout of the HTTP is more instantaneous and asynchronous processing on the request timeout of the HTTP is realized and thus resource waste is reduced compared with a synchronous processing method of the request timeout of the HTTP.

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 request timeout. Background technique [0002] With the rapid development of Internet technology, HTTP (Hypertext Transfer Protocol, Hypertext Transfer Protocol) is widely used in communication between servers due to its simplicity, speed, and flexibility. When the request server simulates the browser sending HTTP requests to the receiving server to obtain data, if the number of HTTP requests is greater than the maximum number of simultaneous HTTP requests allocated by the system, the HTTP request timeout will occur, and in this case, the HTTP request object does not will self-destruct. When the number of HTTP requests in the timeout state is equal to the maximum number of simultaneous HTTP requests allocated by the system, the requesting server will not be able to continue to simulate the browser to send HTTP reque...

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