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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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;
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