CN110012093A - A kind of method and device of adjustment connection time-out time - Google Patents

A kind of method and device of adjustment connection time-out time Download PDF

Info

Publication number
CN110012093A
CN110012093A CN201910260927.1A CN201910260927A CN110012093A CN 110012093 A CN110012093 A CN 110012093A CN 201910260927 A CN201910260927 A CN 201910260927A CN 110012093 A CN110012093 A CN 110012093A
Authority
CN
China
Prior art keywords
time
request
connection
historical
desired value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910260927.1A
Other languages
Chinese (zh)
Other versions
CN110012093B (en
Inventor
胡文
吴岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910260927.1A priority Critical patent/CN110012093B/en
Publication of CN110012093A publication Critical patent/CN110012093A/en
Application granted granted Critical
Publication of CN110012093B publication Critical patent/CN110012093B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session

Abstract

A kind of method and device of adjustment connection time-out time provided in an embodiment of the present invention, the desired value of the request waiting time of multiple connection requests at least one historical time section before first time period can be obtained, wherein, each desired value is the desired value for the request waiting time that multiple connection requests in a historical time section are influenced by the connection time-out time of the historical time section;Comparison result based on desired value and preset threshold is adjusted the connection time-out time of first time period.The embodiment of the present invention can adjust the connection time-out time of the first time period after historical time section by the desired value of the request waiting time of the connection request of historical time section and the comparison result of preset threshold.What the present invention improved network connection establishes efficiency.

Description

A kind of method and device of adjustment connection time-out time
Technical field
The present invention relates to data connection field more particularly to a kind of method and devices of adjustment connection time-out time.
Background technique
Nowadays, people can send connection request to another equipment by certain equipment when using Internet resources to build The vertical network connection for being used for transmission Internet resources.Connection request leads to the connection due to not responded for a long time in order to prevent The meaningless waiting of request, the prior art is by being arranged connection time-out time for connection request to be limited request waiting time System.If the request waiting time of certain connection request reaches connection time-out time, which is sent to another set again For to be retried.
However, the connection time-out time that the prior art is connection request setting is a fixed value, present inventor Research is found: when there is many connection requests not responded for a long time, fixed connection time-out time causes subsequent connection to be asked It asks there is still a need for waiting the long period just to can be carried out to retry, reduce network connection establishes efficiency.
Summary of the invention
In view of the above problems, the present invention provides a kind of one for overcoming the above problem or at least being partially solved the above problem The method and device of kind adjustment connection time-out time, technical solution are as follows:
A method of adjustment connection time-out time, comprising:
The request waiting time of multiple connection requests at least one historical time section before acquisition first time period Desired value, wherein each desired value is company of the multiple connection requests in a historical time section by the historical time section Connect the desired value of the request waiting time of time-out time influence;
Comparison result based on the desired value and preset threshold carries out the connection time-out time of the first time period Adjustment.
Optionally, it is described obtain first time period before at least one historical time section in multiple connection requests ask Seek the desired value of waiting time, comprising:
To at least one historical time section before first time period: obtaining the ending request process in the historical time section Connection request number and request waiting time, obtain the number and request of the connection request of the obstruction in the historical time section Waiting time calculates the multiple companies obtained in the historical time section according to the number of the connection request of acquisition and request waiting time Connect the desired value of the request waiting time of request, wherein the connection request of the ending request process and the connection request of obstruction In do not include the connection request retried.
Optionally, the number of the connection request according to acquisition and request waiting time, which calculate, obtains the historical time section The desired value of the request waiting time of interior multiple connection requests, comprising:
According to formula
Calculate the desired value r for obtaining the request waiting time of multiple connection requests in the historical time section, wherein N is The number of the connection request of ending request process in the historical time section, N=N1+N2, N1For it is in the historical time section, by Reach the number of the connection time-out time of the historical time section and the connection request of ending request process, t in request waiting timei For it is in the historical time section, due to request waiting time reach the historical time section connection time-out time and ending request mistake The request waiting time of i-th of connection request of journey, i be it is in the historical time section, since request waiting time reaches this and goes through The number for connecting time-out time and the connection request of ending request process of history period, N2For it is in the historical time section, by It is established and the number of the connection request of ending request process, t in network connectionjFor it is in the historical time section, due to network connect Connect foundation and the request waiting time of j-th of connection request of ending request process, j be the historical time section in, due to net Network connection is established and the number of the connection request of ending request process, and M is the connection request of the obstruction in the historical time section Number is tkFor the request waiting time of k-th of connection request of the obstruction in the historical time section, k is the historical time section The number of the connection request of interior obstruction, i, j and k are natural number, w1For the ending request process in the historical time section Weight shared by the average request waiting time of connection request, w2It is averaged for the connection request of obstruction in the historical time section Request weight shared by waiting time.
Optionally, the preset threshold includes the first preset threshold, the ratio based on the desired value and preset threshold Relatively result is adjusted the connection time-out time of the first time period, comprising:
By each desired value in the historical time section of continuous preset quantity respectively with the first preset threshold ratio Compared with when each desired value in the historical time section of continuous preset quantity is all larger than first preset threshold, to institute The connection time-out time for stating first time period is adjusted.
Optionally, the preset threshold includes the second preset threshold, the ratio based on the desired value and preset threshold Relatively result is adjusted the connection time-out time of the first time period, comprising:
By each desired value of acquisition respectively compared with second preset threshold, when there is at least one described desired value When greater than second preset threshold, the connection time-out time of the first time period is adjusted.
Optionally, the preset threshold includes the first preset threshold and the second preset threshold, described to be based on the desired value The connection time-out time of the first time period is adjusted with the comparison result of preset threshold, comprising:
By each desired value in the historical time section of continuous preset quantity respectively with the first preset threshold ratio Compared with by each desired value of acquisition respectively compared with second preset threshold, wherein first preset threshold is less than institute State the second preset threshold;
When have in each desired value of acquisition at least one be greater than second preset threshold desired value or the company When each desired value in the historical time section of continuous preset quantity is all larger than first preset threshold, when to described first Between the connection time-out time of section be adjusted.
Optionally, the connection time-out time to the first time period is adjusted, comprising:
The connection time-out time of the first time period is adjusted to the connection time-out of at least one historical time section The presupposition multiple of the average value of time, the presupposition multiple is less than 1 times.
A kind of device of adjustment connection time-out time, comprising: desired value obtaining unit and adjustment unit,
The desired value obtaining unit, for multiple at least one historical time section before obtaining first time period The desired value of the request waiting time of connection request, wherein each desired value is multiple connections in a historical time section The desired value for the request waiting time that request is influenced by the connection time-out time of the historical time section;
The adjustment unit, for the comparison result based on the desired value and preset threshold to the first time period Connection time-out time is adjusted.
Optionally, the desired value obtaining unit is specifically used for:
To at least one historical time section before first time period: obtaining the ending request process in the historical time section Connection request number and request waiting time, obtain the number and request of the connection request of the obstruction in the historical time section Waiting time calculates the multiple companies obtained in the historical time section according to the number of the connection request of acquisition and request waiting time Connect the desired value of the request waiting time of request, wherein the connection request of the ending request process and the connection request of obstruction In do not include the connection request retried.
Optionally, the desired value obtaining unit is specifically used for according to formula
Calculate the desired value r for obtaining the request waiting time of multiple connection requests in the historical time section, wherein N is The number of the connection request of ending request process in the historical time section, N=N1+N2, N1For it is in the historical time section, by Reach the number of the connection time-out time of the historical time section and the connection request of ending request process, t in request waiting timei For it is in the historical time section, due to request waiting time reach the historical time section connection time-out time and ending request mistake The request waiting time of i-th of connection request of journey, i be it is in the historical time section, since request waiting time reaches this and goes through The number for connecting time-out time and the connection request of ending request process of history period, N2For it is in the historical time section, by It is established and the number of the connection request of ending request process, t in network connectionjFor it is in the historical time section, due to network connect Connect foundation and the request waiting time of j-th of connection request of ending request process, j be the historical time section in, due to net Network connection is established and the number of the connection request of ending request process, and M is the connection request of the obstruction in the historical time section Number is tkFor the request waiting time of k-th of connection request of the obstruction in the historical time section, k is the historical time section The number of the connection request of interior obstruction, i, j and k are natural number, w1For the ending request process in the historical time section Weight shared by the average request waiting time of connection request, w2It is averaged for the connection request of obstruction in the historical time section Request weight shared by waiting time.
By above-mentioned technical proposal, a kind of method and device of adjustment connection time-out time provided by the invention can be obtained The request waiting time of multiple connection requests at least one historical time section before first time period desired value, In, each desired value is connection time-out time shadow of the multiple connection requests in a historical time section by the historical time section The desired value of loud request waiting time;Comparison result based on the desired value and preset threshold is to the first time period Connection time-out time is adjusted.The embodiment of the present invention can pass through the request waiting time of the connection request of historical time section The comparison result of desired value and preset threshold adjusts the connection time-out time of the first time period after historical time section.Work as history When the desired value of the request waiting time of the connection request of period is longer, the connection that the present invention can reduce first time period is super When the time.Connection request in this way in first time period just can be carried out retrying quickly to establish net without waiting for the long period Network connection, it is seen then that the present invention improved network connection establishes efficiency.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of flow chart of the method for adjustment connection time-out time provided in an embodiment of the present invention;
Fig. 2 shows the flow charts of the method for another adjustment connection time-out time provided in an embodiment of the present invention;
Fig. 3 shows a kind of structural schematic diagram of the device of adjustment connection time-out time provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
As shown in Figure 1, a kind of method of adjustment connection time-out time provided in an embodiment of the present invention, may include:
The request of multiple connection requests at least one historical time section before S100, acquisition first time period waits The desired value of duration, wherein each desired value is multiple connection requests in a historical time section by the historical time section Connection time-out time influence request waiting time desired value;
The present embodiment can manage the request waiting time of each connection request according to the period, specifically, the present invention can To divide time into multiple periods, for example, since certain year in such a month, and on such a day sometime, every five seconds are a period. Connection request in one period can be the connection request of sending instant during this period of time.Method application shown in Fig. 1 When requesting sending device (such as client device), request sending device can determine each company according to the sending instant of connection request It connects and requests within which period.As time goes by, partial time period will become historical time section.The present embodiment can be with The request waiting time of each connection request of transmission is recorded.
Optionally, each period can be provided with a connection time-out time, when the connection time-out of a period Between be the period in each connection request connection time-out time.Optionally, the present embodiment can be first time period in advance Be arranged one default connection time-out time (such as 10 seconds), then according to the present invention method shown in Fig. 1 to first time period Connection time-out time is adjusted.In other embodiments of the present invention, when can be by the connection time-out of the default of first time period Between be set as the first time period previous time period connection time-out time.
Optionally, when consumed by the request process that the request waiting time in the present embodiment is as connected to the network It is long.There are three types of situations after requesting sending device to send certain connection request for the first time:
After situation one, request sending device send certain connection request, waiting for a period of time, (length of the time is less than connection Time-out time), it requests to establish network connection between sending device and request receiving device.The request waiting time of this situation Are as follows: from duration at the time of being successfully established at the time of sending the connection request to network connection.After establishing network connection, into The request process of row network connection terminates.Connection request in situation one is properly termed as: being terminated since network connection is established The connection request of request process.
After situation two, request sending device send certain connection request, waiting for a period of time, (length of the time has reached even Connect time-out time), it requests not setting up network connection still between sending device and request receiving device.When the request of this situation waits It is long are as follows: connection time-out time.After request waiting time reaches connection time-out time, the request process knot that is connected to the network Beam.Connection request in situation two is properly termed as: due to request waiting time reach connection time-out time and ending request mistake The connection request of journey.
After situation three, request sending device send certain connection request, wait until that current time, (length of the time of waiting was small In connection time-out time), network connection is not set up still between cut-off current time request sending device and request receiving device.This The request waiting time of situation are as follows: from send the connection request at the time of to current time duration.Due to being still needed in the case of this It continues waiting for, therefore requests sending device to send the connection request and be in a kind of blocked state, the request being connected to the network Process is also not finished.Connection request in situation three is properly termed as: the connection request of obstruction.
Optionally, request receiving device can pass through the existing network such as " three-way handshake " after receiving connection request It connects establishing techniques and request sending device is established and is connected to the network, the present invention is it is not limited here.
Optionally, for situation two, the request sending device of the present embodiment can send connection request again to carry out weight Examination.It should be noted that the connection request retried can be requested receiving device priority processing, therefore the connection request retried is asked Ask waiting time that can be less than the request waiting time of the connection request sent for the first time.In an alternate embodiment of the present invention, calculating When requesting the desired value of waiting time, the request waiting time of the connection request retried can not be considered.Certainly, the present invention its In his embodiment, can also be added to the desired value of computation requests waiting time the request waiting time of the connection request retried Calculating process.
In an alternate embodiment of the present invention, in the desired value of computation requests waiting time, the company of obstruction can not be considered Connect the request waiting time of request.
Specifically, a historical time section before first time period can be the historical time adjacent with first time period Section, is also possible to historical time section not adjacent with first time period.It is multiple before the first time period that the present embodiment obtains It can be continuously, be also possible to discontinuous between historical time section.The span of first time period and historical time section across Degree can be identical, for example, the span of first time period is 5 seconds, the span of historical time section is also 5 seconds.It is understood that the The span of the span of one period and historical time section is also possible to different.If multiple historical time sections, each history The span of period can be identical, is also possible to different, is not further limited herein.
Optionally, the span of the historical time section before first time period and first time period can be respectively greater than each time The connection time-out time of section.
Optionally, as shown in Fig. 2, the method for another adjustment connection time-out time provided in an embodiment of the present invention, step S100 may include:
S110, at least one historical time section before first time period: obtain the end in the historical time section and ask Number and the request waiting time for seeking the connection request of process, obtain the number of the connection request of the obstruction in the historical time section With request waiting time;
Specifically, the connection request of the ending request process in the historical time section may include that the following two kinds connection is asked It asks:
The first, in the historical time section, when reaching the connection time-out of the historical time section due to request waiting time Between and the connection request of ending request process;
Second, in the historical time section, due to network connection establish and the connection request of ending request process.
For convenience of understanding, it is exemplified below:
Citing 1: since 00 minute and 00 second 00 point of on March 27th, 2019, every five seconds was a period, and current time is 00 minute and 30 seconds 00 point of on March 27th, 2019, then there are six historical time sections, be respectively as follows: [00,05), [05,10), [10, 15), [15,20), [20,25) and [25,30).For the sake of convenient, above-mentioned six historical time sections are simultaneously not added with time-division date, It is not added with unit.The unit of above-mentioned six historical time sections is the second.The present embodiment can be according to before in two adjacent periods The desired value of the request waiting time of multiple connection requests in one period adjusts the connection time-out time of latter time period. For citing 1, then can according to [00,05) in multiple connection requests request waiting time desired value come adjust [05, 10) connection time-out time.According to [05,10) in multiple connection requests request waiting time desired value come adjust [10, 15) connection time-out time, and so on.The present embodiment can be according in a current time nearest historical time section Multiple connection requests request waiting time desired value come the connection time-out time of the period where adjusting current time. Since current time is 00 minute and 30 seconds 00 point of on March 27th, 2019, for 1 the present embodiment of citing can according to [25,30) The desired value of the request waiting time of interior multiple connection requests come adjust [30,35) connection time-out time.
Assuming that citing 1 in [25,30) in request sending device send out 10 connection requests altogether, wherein there is 2 connections Request is the connection request retried, and remaining 8 are the connection request sent for the first time.Then the present embodiment can be according at the beginning of this 8 The request waiting time of the connection request of secondary transmission determine [25,30) in multiple connection requests request waiting time phase Prestige value.This 8 connection requests be respectively request 1 to request 8, it is assumed that request 1 to request 3 be due to request waiting time reach [25,30) connection time-out time and ending request process connection request, request 4 to request 6 be due to network connection establish And the connection request of ending request process, request 7 and request 8 are the connection requests of obstruction.[25,30) connection time-out time be 3 seconds.Specifically, the request waiting time of request 1 to request 8 is as shown in table 1:
Table 1
Request Request 1 Request 2 Request 3 Request 4 Request 5 Request 6 Request 7 Request 8
Request waiting time 3 seconds 3 seconds 3 seconds 1.2 the second 1.8 the second 2.1 the second 0.7 second 0.3 second
S120, calculated according to the number and request waiting time of the connection request of acquisition obtain it is more in the historical time section The desired value of the request waiting time of a connection request, wherein the connection of the connection request and obstruction of the ending request process It does not include the connection request retried in request.
Optionally, the method for another adjustment connection time-out time provided in an embodiment of the present invention, step S120 can have Body is according to formula
Calculate the desired value r for obtaining the request waiting time of multiple connection requests in the historical time section, wherein N is The number of the connection request of ending request process in the historical time section, N=N1+N2, N1For it is in the historical time section, by Reach the number of the connection time-out time of the historical time section and the connection request of ending request process, t in request waiting timei For it is in the historical time section, due to request waiting time reach the historical time section connection time-out time and ending request mistake The request waiting time of i-th of connection request of journey, i be it is in the historical time section, since request waiting time reaches this and goes through The number for connecting time-out time and the connection request of ending request process of history period, N2For it is in the historical time section, by It is established and the number of the connection request of ending request process, t in network connectionjFor it is in the historical time section, due to network connect Connect foundation and the request waiting time of j-th of connection request of ending request process, j be the historical time section in, due to net Network connection is established and the number of the connection request of ending request process, and M is the connection request of the obstruction in the historical time section Number is tkFor the request waiting time of k-th of connection request of the obstruction in the historical time section, k is the historical time section The number of the connection request of interior obstruction, i, j and k are natural number, w1For the ending request process in the historical time section Weight shared by the average request waiting time of connection request, w2It is averaged for the connection request of obstruction in the historical time section Request weight shared by waiting time.
It is understood that since the connection request of ending request process experienced a complete request process, and hinder The request process of the connection request of plug is also not finished, therefore the request waiting time of the connection request blocked is not completely to ask Ask waiting time.As it can be seen that the confidence level of the request waiting time of the connection request of ending request process is higher.Therefore, the application In one alternative embodiment, weight shared by the average request waiting time of the connection request of ending request process can be greater than obstruction Connection request average request waiting time shared by weight.It can make the desired value for calculating acquisition more accurate in this way and close Reason.
If in citing 1 [25,30) in, power shared by average request waiting time of the connection request of ending request process Weight is 0.9;If [25,30) in, obstruction connection request average request waiting time shared by weight be 0.1, then below Substituting into top formula for the request waiting time respectively requested shown in table 1 and quantity can obtain:
Desired valueSecond
S200, the comparison result based on the desired value and preset threshold are to the connection time-out time of the first time period It is adjusted.
Specifically, preset threshold can be set and be adjusted by technical staff.Optionally, preset threshold can be gone through according to multiple The desired value setting of the request waiting time of multiple connection requests in the history period.Such as: statistics request receiving device is just The request waiting time of interior other connection requests in addition to the connection request retried of multiple historical time sections often during work Desired value sets preset threshold to some multiple of the desired value, and such as 1.1 times.
Certainly, preset threshold can also have other setting methods, and the present invention is it is not limited here.
Optionally, preset threshold can be one, or multiple.
Step S200 may include following three kinds of specific embodiments:
Specific embodiment one, when step S100 obtain desired value in include continuous preset quantity historical time section When interior desired value, preset threshold may include the first preset threshold, and step S200 may include:
By each desired value in the historical time section of continuous preset quantity respectively with the first preset threshold ratio Compared with when each desired value in the historical time section of continuous preset quantity is all larger than first preset threshold, to institute The connection time-out time for stating first time period is adjusted.
Still using citing 1 explanation: when preset quantity be 5 when, first time period be [30,35), if step S100 obtain [05,10), [10,15), [15,20), [20,25) and [25,30) request of connection request etc. in this five historical time section To the desired value of duration, then can by the desired value of this five historical time sections respectively compared with first preset threshold, when When being all larger than the first preset threshold, illustrate in the one long time in the past, the expectation of the request waiting time of connection request It is worth long.At this time can will [30,35) the request timed out time reduce, such as: be adjusted to [25,30) request timed out 0.9 times of time, alternatively, be adjusted to [05,10), [10,15), [15,20), [20,25) and [25,30) this five historical times 0.9 times of the average value of the request timed out time of section.
When each at least one desired value of the desired value in the historical time section of continuous preset quantity is not more than institute When stating the first preset threshold, can not the connection time-out time to the first time period be adjusted.At this point, first time period Connection time-out time be still default connection time-out time, before the connection time-out time of the default can be first time period The connection time-out time of one period.
Specific embodiment two, preset threshold may include the second preset threshold, and step S200 can be specifically included:
By each desired value of acquisition respectively compared with second preset threshold, when there is at least one described desired value When greater than second preset threshold, the connection time-out time of the first time period is adjusted.
Wherein, first preset threshold can be less than second preset threshold.
Still using citing 1 explanation: when preset quantity be 5 when, first time period be [30,35), if step S100 obtain [05,10), [10,15), [15,20), [20,25) and [25,30) request of connection request etc. in this five historical time section To the desired value of duration, then can by the desired value of this five historical time sections respectively compared with second preset threshold, when When at least one is greater than the second preset threshold, illustrate request grown very much etc. once occurred in the one long time in the past Desired value to duration.At this time can will [30,35) the request timed out time reduce, it is prolonged etc. to avoid occurring To.
It, can not be to the first time period when each desired value of acquisition is no more than second preset threshold Connection time-out time be adjusted.At this point, the connection time-out time of first time period is still the connection time-out time of default, it should The connection time-out time of default can be the connection time-out time of the previous time period of first time period.
Specific embodiment three, preset threshold may include the first preset threshold and the second preset threshold, and step S200 can To specifically include:
By each desired value in the historical time section of continuous preset quantity respectively with the first preset threshold ratio Compared with by each desired value of acquisition respectively compared with second preset threshold, wherein first preset threshold is less than institute State the second preset threshold;
When have in each desired value of acquisition at least one be greater than second preset threshold desired value or the company When each desired value in the historical time section of continuous preset quantity is all larger than first preset threshold, when to described first Between the connection time-out time of section be adjusted.
By that compared with the first preset threshold and the second preset threshold, can be obtained respectively with the measurement step S100 of multi-angle Each desired value and accordingly adjustment subsequent period of time connection time-out time.
When each at least one desired value of the desired value in the historical time section of continuous preset quantity is not more than institute When stating the first preset threshold, and obtain each desired value no more than second preset threshold when, can not be to institute The connection time-out time for stating first time period is adjusted.At this point, the connection time-out time of first time period is still the company of default Time-out time is connect, the connection time-out time of the default can be the connection time-out time of the previous time period of first time period.
Optionally, the connection time-out time of the first time period is adjusted in above-mentioned three kinds of specific embodiments Mode can be with specifically:
The connection time-out time of the first time period is adjusted to the connection time-out of at least one historical time section The presupposition multiple of the average value of time, the presupposition multiple is less than 1 times.
Optionally, the connection time-out time of the first time period is adjusted in above-mentioned three kinds of specific embodiments Mode can also be with specifically:
The connection time-out time of the first time period is adjusted to the pre- of the connection time-out time of a historical time section If multiple.
Optionally, historical time Duan Weiyu first time period it is adjacent and be located at first time period before historical time Section.
It is understood that when the reduction with connection time-out time, the desired value of the request waiting time of connection request Also corresponding to reduce.When requesting the desired value of waiting time to be decreased to preset threshold, then no longer reduce.Specifically, specific implementation The desired value of request waiting time in scheme three is after being decreased to the first preset threshold, the connection time-out time of subsequent period of time To no longer it reduce.
Certainly, other than reducing and connecting time-out time, the embodiment of the present invention can also increase connection time-out time, such as: Preset threshold may include third predetermined threshold value, and step S200 can be specifically included:
By each desired value of acquisition respectively compared with the third predetermined threshold value, when the respectively less than described third presets threshold When value, increase the connection time-out time of the first time period.
The method of a kind of adjustment connection time-out time provided in an embodiment of the present invention, before can obtaining first time period The desired value of the request waiting time of multiple connection requests at least one historical time section, wherein each desired value is The request waiting time that multiple connection requests in one historical time section are influenced by the connection time-out time of the historical time section Desired value;Comparison result based on the desired value and preset threshold carries out the connection time-out time of the first time period Adjustment.The embodiment of the present invention can pass through the desired value and preset threshold of the request waiting time of the connection request of historical time section Comparison result adjustment historical time section after first time period connection time-out time.When the connection request of historical time section Request waiting time desired value it is longer when, the present invention can reduce the connection time-out time of first time period.Such first Connection request in period just can be carried out retrying with quick foundation network connection without waiting for the long period, it is seen then that this What invention improved network connection establishes efficiency.
Corresponding with above method embodiment, the embodiment of the invention also provides a kind of dresses of adjustment connection time-out time It sets.
As shown in figure 3, a kind of system of adjustment connection time-out time provided in an embodiment of the present invention, may include: expectation It is worth obtaining unit 100 and adjustment unit 200,
The desired value obtaining unit 100, for obtaining at least one historical time section before first time period The desired value of the request waiting time of multiple connection requests, wherein each desired value is multiple in a historical time section The desired value for the request waiting time that connection request is influenced by the connection time-out time of the historical time section;
Optionally, the desired value obtaining unit 100 can be specifically used for:
To at least one historical time section before first time period: obtaining the ending request process in the historical time section Connection request number and request waiting time, obtain the number and request of the connection request of the obstruction in the historical time section Waiting time calculates the multiple companies obtained in the historical time section according to the number of the connection request of acquisition and request waiting time Connect the desired value of the request waiting time of request, wherein the connection request of the ending request process and the connection request of obstruction In do not include the connection request retried.
Wherein, the desired value obtaining unit 100 can be specifically used for according to formula
Calculate the desired value r for obtaining the request waiting time of multiple connection requests in the historical time section, wherein N is The number of the connection request of ending request process in the historical time section, N=N1+N2, N1For it is in the historical time section, by Reach the number of the connection time-out time of the historical time section and the connection request of ending request process, t in request waiting timei For it is in the historical time section, due to request waiting time reach the historical time section connection time-out time and ending request mistake The request waiting time of i-th of connection request of journey, i be it is in the historical time section, since request waiting time reaches this and goes through The number for connecting time-out time and the connection request of ending request process of history period, N2For it is in the historical time section, by It is established and the number of the connection request of ending request process, t in network connectionjFor it is in the historical time section, due to network connect Connect foundation and the request waiting time of j-th of connection request of ending request process, j be the historical time section in, due to net Network connection is established and the number of the connection request of ending request process, and M is the connection request of the obstruction in the historical time section Number is tkFor the request waiting time of k-th of connection request of the obstruction in the historical time section, k is the historical time section The number of the connection request of interior obstruction, i, j and k are natural number, w1For the ending request process in the historical time section Weight shared by the average request waiting time of connection request, w2It is averaged for the connection request of obstruction in the historical time section Request weight shared by waiting time.
The adjustment unit 200, for the comparison result based on the desired value and preset threshold to the first time The connection time-out time of section is adjusted.
Optionally, the preset threshold includes the first preset threshold, and the adjustment unit 200 can be specifically used for:
By each desired value in the historical time section of continuous preset quantity respectively with the first preset threshold ratio Compared with when each desired value in the historical time section of continuous preset quantity is all larger than first preset threshold, to institute The connection time-out time for stating first time period is adjusted.
Optionally, the preset threshold includes the second preset threshold, and the adjustment unit 200 can be specifically used for:
By each desired value of acquisition respectively compared with second preset threshold, when there is at least one described desired value When greater than second preset threshold, the connection time-out time of the first time period is adjusted.
Optionally, the preset threshold includes the first preset threshold and the second preset threshold, and the adjustment unit 200 can be with It is specifically used for:
By each desired value in the historical time section of continuous preset quantity respectively with the first preset threshold ratio Compared with by each desired value of acquisition respectively compared with second preset threshold, wherein first preset threshold is less than institute State the second preset threshold;
When have in each desired value of acquisition at least one be greater than second preset threshold desired value or the company When each desired value in the historical time section of continuous preset quantity is all larger than first preset threshold, when to described first Between the connection time-out time of section be adjusted.
Wherein, the adjustment unit 200 is adjusted the connection time-out time of the first time period and can specifically set It is set to: the connection time-out time of the first time period is adjusted to the connection time-out time of at least one historical time section Average value presupposition multiple, the presupposition multiple is less than 1 times.
A kind of device of adjustment connection time-out time provided by the invention, can obtain at least one before first time period The desired value of the request waiting time of multiple connection requests in a historical time section, wherein each desired value is one and goes through The expectation for the request waiting time that multiple connection requests in the history period are influenced by the connection time-out time of the historical time section Value;Comparison result based on the desired value and preset threshold is adjusted the connection time-out time of the first time period. The embodiment of the present invention can pass through the desired value of the request waiting time of the connection request of historical time section and the ratio of preset threshold Relatively result adjusts the connection time-out time of the first time period after historical time section.When the connection request of historical time section is asked When asking the desired value of waiting time longer, the present invention can reduce the connection time-out time of first time period.So at the first time Connection request in section just can be carried out retrying with quick foundation network connection without waiting for the long period, it is seen then that the present invention Improve network connection establishes efficiency.
The device of the adjustment connection time-out time includes processor and memory, above-mentioned 100 He of desired value obtaining unit Adjustment units 200 etc. store in memory as program unit, execute above-mentioned journey stored in memory by processor Sequence unit realizes corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one Or more, connection time-out time is adjusted by adjusting kernel parameter.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited Store up chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor The method of the existing adjustment connection time-out time.
The embodiment of the invention provides a kind of processor, the processor is for running program, wherein described program operation The method of adjustment connection time-out time described in Shi Zhihang.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can The program run on a processor, processor perform the steps of when executing program
The request waiting time of multiple connection requests at least one historical time section before acquisition first time period Desired value, wherein each desired value is company of the multiple connection requests in a historical time section by the historical time section Connect the desired value of the request waiting time of time-out time influence;
Comparison result based on the desired value and preset threshold carries out the connection time-out time of the first time period Adjustment.
Optionally, it is described obtain first time period before at least one historical time section in multiple connection requests ask Seek the desired value of waiting time, comprising:
To at least one historical time section before first time period: obtaining the ending request process in the historical time section Connection request number and request waiting time, obtain the number and request of the connection request of the obstruction in the historical time section Waiting time calculates the multiple companies obtained in the historical time section according to the number of the connection request of acquisition and request waiting time Connect the desired value of the request waiting time of request, wherein the connection request of the ending request process and the connection request of obstruction In do not include the connection request retried.
Optionally, the number of the connection request according to acquisition and request waiting time, which calculate, obtains the historical time section The desired value of the request waiting time of interior multiple connection requests, comprising:
According to formula
Calculate the desired value r for obtaining the request waiting time of multiple connection requests in the historical time section, wherein N is The number of the connection request of ending request process in the historical time section, N=N1+N2, N1For it is in the historical time section, by Reach the number of the connection time-out time of the historical time section and the connection request of ending request process, t in request waiting timei For it is in the historical time section, due to request waiting time reach the historical time section connection time-out time and ending request mistake The request waiting time of i-th of connection request of journey, i be it is in the historical time section, since request waiting time reaches this and goes through The number for connecting time-out time and the connection request of ending request process of history period, N2For it is in the historical time section, by It is established and the number of the connection request of ending request process, t in network connectionjFor it is in the historical time section, due to network connect Connect foundation and the request waiting time of j-th of connection request of ending request process, j be the historical time section in, due to net Network connection is established and the number of the connection request of ending request process, and M is the connection request of the obstruction in the historical time section Number is tkFor the request waiting time of k-th of connection request of the obstruction in the historical time section, k is the historical time section The number of the connection request of interior obstruction, i, j and k are natural number, w1For the ending request process in the historical time section Weight shared by the average request waiting time of connection request, w2It is averaged for the connection request of obstruction in the historical time section Request weight shared by waiting time.
Optionally, the preset threshold includes the first preset threshold, the ratio based on the desired value and preset threshold Relatively result is adjusted the connection time-out time of the first time period, comprising:
By each desired value in the historical time section of continuous preset quantity respectively with the first preset threshold ratio Compared with when each desired value in the historical time section of continuous preset quantity is all larger than first preset threshold, to institute The connection time-out time for stating first time period is adjusted.
Optionally, the preset threshold includes the second preset threshold, the ratio based on the desired value and preset threshold Relatively result is adjusted the connection time-out time of the first time period, comprising:
By each desired value of acquisition respectively compared with second preset threshold, when there is at least one described desired value When greater than second preset threshold, the connection time-out time of the first time period is adjusted.
Optionally, the preset threshold includes the first preset threshold and the second preset threshold, described to be based on the desired value The connection time-out time of the first time period is adjusted with the comparison result of preset threshold, comprising:
By each desired value in the historical time section of continuous preset quantity respectively with the first preset threshold ratio Compared with by each desired value of acquisition respectively compared with second preset threshold, wherein first preset threshold is less than institute State the second preset threshold;
When have in each desired value of acquisition at least one be greater than second preset threshold desired value or the company When each desired value in the historical time section of continuous preset quantity is all larger than first preset threshold, when to described first Between the connection time-out time of section be adjusted.
Optionally, the connection time-out time to the first time period is adjusted, comprising:
The connection time-out time of the first time period is adjusted to the connection time-out of at least one historical time section The presupposition multiple of the average value of time, the presupposition multiple is less than 1 times.
Equipment herein can be server, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just The program of beginningization there are as below methods step:
The request waiting time of multiple connection requests at least one historical time section before acquisition first time period Desired value, wherein each desired value is company of the multiple connection requests in a historical time section by the historical time section Connect the desired value of the request waiting time of time-out time influence;
Comparison result based on the desired value and preset threshold carries out the connection time-out time of the first time period Adjustment.
Optionally, it is described obtain first time period before at least one historical time section in multiple connection requests ask Seek the desired value of waiting time, comprising:
To at least one historical time section before first time period: obtaining the ending request process in the historical time section Connection request number and request waiting time, obtain the number and request of the connection request of the obstruction in the historical time section Waiting time calculates the multiple companies obtained in the historical time section according to the number of the connection request of acquisition and request waiting time Connect the desired value of the request waiting time of request, wherein the connection request of the ending request process and the connection request of obstruction In do not include the connection request retried.
Optionally, the number of the connection request according to acquisition and request waiting time, which calculate, obtains the historical time section The desired value of the request waiting time of interior multiple connection requests, comprising:
According to formula
Calculate the desired value r for obtaining the request waiting time of multiple connection requests in the historical time section, wherein N is The number of the connection request of ending request process in the historical time section, N=N1+N2, N1For it is in the historical time section, by Reach the number of the connection time-out time of the historical time section and the connection request of ending request process, t in request waiting timei For it is in the historical time section, due to request waiting time reach the historical time section connection time-out time and ending request mistake The request waiting time of i-th of connection request of journey, i be it is in the historical time section, since request waiting time reaches this and goes through The number for connecting time-out time and the connection request of ending request process of history period, N2For it is in the historical time section, by It is established and the number of the connection request of ending request process, t in network connectionjFor it is in the historical time section, due to network connect Connect foundation and the request waiting time of j-th of connection request of ending request process, j be the historical time section in, due to net Network connection is established and the number of the connection request of ending request process, and M is the connection request of the obstruction in the historical time section Number is tkFor the request waiting time of k-th of connection request of the obstruction in the historical time section, k is the historical time section The number of the connection request of interior obstruction, i, j and k are natural number, w1For the ending request process in the historical time section Weight shared by the average request waiting time of connection request, w2It is averaged for the connection request of obstruction in the historical time section Request weight shared by waiting time.
Optionally, the preset threshold includes the first preset threshold, the ratio based on the desired value and preset threshold Relatively result is adjusted the connection time-out time of the first time period, comprising:
By each desired value in the historical time section of continuous preset quantity respectively with the first preset threshold ratio Compared with when each desired value in the historical time section of continuous preset quantity is all larger than first preset threshold, to institute The connection time-out time for stating first time period is adjusted.
Optionally, the preset threshold includes the second preset threshold, the ratio based on the desired value and preset threshold Relatively result is adjusted the connection time-out time of the first time period, comprising:
By each desired value of acquisition respectively compared with second preset threshold, when there is at least one described desired value When greater than second preset threshold, the connection time-out time of the first time period is adjusted.
Optionally, the preset threshold includes the first preset threshold and the second preset threshold, described to be based on the desired value The connection time-out time of the first time period is adjusted with the comparison result of preset threshold, comprising:
By each desired value in the historical time section of continuous preset quantity respectively with the first preset threshold ratio Compared with by each desired value of acquisition respectively compared with second preset threshold, wherein first preset threshold is less than institute State the second preset threshold;
When have in each desired value of acquisition at least one be greater than second preset threshold desired value or the company When each desired value in the historical time section of continuous preset quantity is all larger than first preset threshold, when to described first Between the connection time-out time of section be adjusted.
Optionally, the connection time-out time to the first time period is adjusted, comprising:
The connection time-out time of the first time period is adjusted to the connection time-out of at least one historical time section The presupposition multiple of the average value of time, the presupposition multiple is less than 1 times.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art, Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement, Improve etc., it should be included within the scope of the claims of this application.

Claims (10)

1. a kind of method of adjustment connection time-out time characterized by comprising
The phase of the request waiting time of multiple connection requests at least one historical time section before acquisition first time period Prestige value, wherein each desired value is that multiple connection requests in a historical time section are super by the connection of the historical time section When time effects request waiting time desired value;
Comparison result based on the desired value and preset threshold is adjusted the connection time-out time of the first time period.
2. the method according to claim 1, wherein described at least one history obtained before first time period The desired value of the request waiting time of multiple connection requests in period, comprising:
To at least one historical time section before first time period: obtaining the company of the ending request process in the historical time section Number and the request waiting time for connecing request, the number and request for obtaining the connection request of the obstruction in the historical time section wait Duration calculates multiple connections in the acquisition historical time section according to the number of the connection request of acquisition and request waiting time and asks The desired value for the request waiting time asked, wherein in the connection request of the ending request process and the connection request of obstruction It does not include the connection request retried.
3. according to the method described in claim 2, it is characterized in that, the number of the connection request according to acquisition and request etc. The desired value of the request waiting time of multiple connection requests in the historical time section is obtained to duration calculation, comprising:
According to formula
Calculate the desired value r for obtaining the request waiting time of multiple connection requests in the historical time section, wherein N goes through for this The number of the connection request of ending request process in the history period, N=N1+N2, N1For it is in the historical time section, due to asking Waiting time is asked to reach the number for connecting time-out time and the connection request of ending request process of the historical time section, tiFor this Connection time-out time in historical time section, reaching the historical time section due to request waiting time and ending request process The request waiting time of i-th of connection request, i be the historical time section in, due to request waiting time reach the history when Between section connection time-out time and the connection request of ending request process number, N2For it is in the historical time section, due to net Network connection is established and the number of the connection request of ending request process, tjFor it is in the historical time section, due to network connection build Vertical and request waiting time of j-th of connection request of ending request process, j be it is in the historical time section, since network connects It connecing and establishes and the number of the connection request of ending request process, M is the number of the connection request of the obstruction in the historical time section, For tkFor the request waiting time of k-th of connection request of the obstruction in the historical time section, k is the resistance in the historical time section The number of the connection request of plug, i, j and k are natural number, w1Connection for the ending request process in the historical time section is asked Weight shared by the average request waiting time asked, w2For the average request etc. of the connection request of the obstruction in the historical time section To weight shared by duration.
4. the method according to claim 1, wherein the preset threshold includes the first preset threshold, the base It is adjusted in connection time-out time of the comparison result of the desired value and preset threshold to the first time period, comprising:
By each desired value in the historical time section of continuous preset quantity respectively compared with first preset threshold, when When each desired value in the historical time section of continuous preset quantity is all larger than first preset threshold, to described first The connection time-out time of period is adjusted.
5. the method according to claim 1, wherein the preset threshold includes the second preset threshold, the base It is adjusted in connection time-out time of the comparison result of the desired value and preset threshold to the first time period, comprising:
By each desired value of acquisition respectively compared with second preset threshold, when there is at least one described desired value to be greater than When second preset threshold, the connection time-out time of the first time period is adjusted.
6. the method according to claim 1, wherein the preset threshold includes that the first preset threshold and second are pre- If threshold value, the comparison result based on the desired value and preset threshold to the connection time-out time of the first time period into Row adjustment, comprising:
It, will by each desired value in the historical time section of continuous preset quantity respectively compared with first preset threshold Each desired value obtained is respectively compared with second preset threshold, wherein first preset threshold is less than described the Two preset thresholds;
When there is at least one to be greater than the desired value of second preset threshold or described continuous in each desired value of acquisition When each desired value in the historical time section of preset quantity is all larger than first preset threshold, to the first time period Connection time-out time be adjusted.
7. the method according to any one of claim 4 to 6, which is characterized in that the company to the first time period Time-out time is connect to be adjusted, comprising:
The connection time-out time of the first time period is adjusted to the connection time-out time of at least one historical time section Average value presupposition multiple, the presupposition multiple is less than 1 times.
8. a kind of device of adjustment connection time-out time characterized by comprising desired value obtaining unit and adjustment unit,
The desired value obtaining unit, for multiple connections at least one historical time section before obtaining first time period The desired value of the request waiting time of request, wherein each desired value is multiple connection requests in a historical time section The desired value of the request waiting time influenced by the connection time-out time of the historical time section;
The adjustment unit, the connection for the comparison result based on the desired value and preset threshold to the first time period Time-out time is adjusted.
9. device according to claim 8, which is characterized in that the desired value obtaining unit is specifically used for:
To at least one historical time section before first time period: obtaining the company of the ending request process in the historical time section Number and the request waiting time for connecing request, the number and request for obtaining the connection request of the obstruction in the historical time section wait Duration calculates multiple connections in the acquisition historical time section according to the number of the connection request of acquisition and request waiting time and asks The desired value for the request waiting time asked, wherein in the connection request of the ending request process and the connection request of obstruction It does not include the connection request retried.
10. device according to claim 9, which is characterized in that the desired value obtaining unit is specifically used for according to formula
Calculate the desired value r for obtaining the request waiting time of multiple connection requests in the historical time section, wherein N goes through for this The number of the connection request of ending request process in the history period, N=N1+N2, N1For it is in the historical time section, due to asking Waiting time is asked to reach the number for connecting time-out time and the connection request of ending request process of the historical time section, tiFor this Connection time-out time in historical time section, reaching the historical time section due to request waiting time and ending request process The request waiting time of i-th of connection request, i be the historical time section in, due to request waiting time reach the history when Between section connection time-out time and the connection request of ending request process number, N2For it is in the historical time section, due to net Network connection is established and the number of the connection request of ending request process, tjFor it is in the historical time section, due to network connection build Vertical and request waiting time of j-th of connection request of ending request process, j be it is in the historical time section, since network connects It connecing and establishes and the number of the connection request of ending request process, M is the number of the connection request of the obstruction in the historical time section, For tkFor the request waiting time of k-th of connection request of the obstruction in the historical time section, k is the resistance in the historical time section The number of the connection request of plug, i, j and k are natural number, w1Connection for the ending request process in the historical time section is asked Weight shared by the average request waiting time asked, w2For the average request etc. of the connection request of the obstruction in the historical time section To weight shared by duration.
CN201910260927.1A 2019-04-02 2019-04-02 Method and device for adjusting connection timeout Active CN110012093B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910260927.1A CN110012093B (en) 2019-04-02 2019-04-02 Method and device for adjusting connection timeout

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910260927.1A CN110012093B (en) 2019-04-02 2019-04-02 Method and device for adjusting connection timeout

Publications (2)

Publication Number Publication Date
CN110012093A true CN110012093A (en) 2019-07-12
CN110012093B CN110012093B (en) 2021-12-24

Family

ID=67169401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910260927.1A Active CN110012093B (en) 2019-04-02 2019-04-02 Method and device for adjusting connection timeout

Country Status (1)

Country Link
CN (1) CN110012093B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110768861A (en) * 2019-09-20 2020-02-07 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for obtaining overtime threshold
CN111984455A (en) * 2020-09-08 2020-11-24 中国农业银行股份有限公司 Detection method and device of timeout data, server and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7953870B1 (en) * 2009-12-09 2011-05-31 Sprint Communications Company L.P. Dynamic HTTP service timeout adjustment
CN105227345A (en) * 2015-08-24 2016-01-06 北京汉柏科技有限公司 A kind of time-out time method to set up of connection and device
CN105939225A (en) * 2016-06-23 2016-09-14 微梦创科网络科技(中国)有限公司 Method and device for executing service
CN108509325A (en) * 2018-03-07 2018-09-07 北京三快在线科技有限公司 System time-out time is dynamically determined method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7953870B1 (en) * 2009-12-09 2011-05-31 Sprint Communications Company L.P. Dynamic HTTP service timeout adjustment
CN105227345A (en) * 2015-08-24 2016-01-06 北京汉柏科技有限公司 A kind of time-out time method to set up of connection and device
CN105939225A (en) * 2016-06-23 2016-09-14 微梦创科网络科技(中国)有限公司 Method and device for executing service
CN108509325A (en) * 2018-03-07 2018-09-07 北京三快在线科技有限公司 System time-out time is dynamically determined method and apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110768861A (en) * 2019-09-20 2020-02-07 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for obtaining overtime threshold
CN110768861B (en) * 2019-09-20 2021-07-06 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for obtaining overtime threshold
CN111984455A (en) * 2020-09-08 2020-11-24 中国农业银行股份有限公司 Detection method and device of timeout data, server and computer storage medium

Also Published As

Publication number Publication date
CN110012093B (en) 2021-12-24

Similar Documents

Publication Publication Date Title
US20200342322A1 (en) Method and device for training data, storage medium, and electronic device
WO2018210057A1 (en) Method and device for determining delivery region
CN103678408B (en) A kind of method and device of inquiry data
CN108279974B (en) Cloud resource allocation method and device
US8914501B2 (en) Method, apparatus, and system for scheduling distributed buffer resources
CN109617986A (en) A kind of load-balancing method and the network equipment
CN108551489A (en) A kind of application server load balancing method, system, device and storage medium
CN105808341B (en) A kind of methods, devices and systems of scheduling of resource
JP6546192B2 (en) Method and system for bandwidth dependent file transfer
CN110012093A (en) A kind of method and device of adjustment connection time-out time
CN104199912B (en) A kind of method and device of task processing
CN109729049A (en) The sharing method and device of information
CN106302640A (en) Data request processing method and device
CN107480078A (en) A kind of bus bandwidth distribution method, device and chip
CN106209875A (en) Method for processing business based on multi-services device and service server
CN105740076B (en) A kind of load-balancing method and device
CN104184765A (en) Request control method, client apparatus and server-side apparatus
CN107402862A (en) For realizing the method and apparatus of resource layout in client
CN103560974B (en) Method and device for maintaining tokens
CN108965364A (en) Resource allocation method, apparatus and system
CN106909472B (en) Input/output load adjusting method and device of distributed file system
CN109947843A (en) The determination method, apparatus and system of time in block chain
CN108965578A (en) Information-pushing method and device
CN109298944B (en) Server pressure adjusting method and device, computer device and storage medium
CN110442433B (en) Method, equipment and storage medium for executing SQL (structured query language) task

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant