CN105245567B - A kind of processing updates the method and server system of request - Google Patents

A kind of processing updates the method and server system of request Download PDF

Info

Publication number
CN105245567B
CN105245567B CN201510541890.1A CN201510541890A CN105245567B CN 105245567 B CN105245567 B CN 105245567B CN 201510541890 A CN201510541890 A CN 201510541890A CN 105245567 B CN105245567 B CN 105245567B
Authority
CN
China
Prior art keywords
client
update
server
request
information
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.)
Active
Application number
CN201510541890.1A
Other languages
Chinese (zh)
Other versions
CN105245567A (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 JIANSHI CHENGXIN TECHNOLOGIES Co Ltd
Original Assignee
BEIJING JIANSHI CHENGXIN TECHNOLOGIES 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 JIANSHI CHENGXIN TECHNOLOGIES Co Ltd filed Critical BEIJING JIANSHI CHENGXIN TECHNOLOGIES Co Ltd
Priority to CN201510541890.1A priority Critical patent/CN105245567B/en
Publication of CN105245567A publication Critical patent/CN105245567A/en
Application granted granted Critical
Publication of CN105245567B publication Critical patent/CN105245567B/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/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses methods and server system that a kind of processing updates request, belong to computer application technology.The described method includes: server receives the update request from client, server is calculated according to update request, judge whether the client can update, if it is, the server sends more new information to the client, otherwise, the notice for not allowing to update is sent to the client.According to the technical solution of the present invention, it can be realized being updated in batches for client, when the software volume of update is larger, the pressure of server can be alleviated, avoid the problem that the server early warning as caused by network congestion or paralysis.

Description

A kind of processing updates the method and server system of request
Technical field
The present invention relates to methods and server system that a kind of processing updates request, belong to computer application technology.
Background technique
With the continuous development of Computer Applied Technology, the quantity of computer software is more and more, and new version is also continuous Occur, when a kind of new version of software occurs, there is the demand of high-volume software upgrading, the purpose of software upgrading It is the effect repaired the part BUG in lowest version and optimize it.In the technology of existing software upgrading, no matter full dose more New or incremental update processing mode all will when software volume increases to a certain degree or server bandwidth is restricted The case where being faced with network congestion, leads to server early warning or paralysis, and client can not just update.
Summary of the invention
The purpose of the invention is to overcome the deficiencies of existing technologies, the method and service of a kind of processing update request are provided Device system.
The present invention provides a kind of methods that processing updates request, which comprises
Step A1: server receives the request of the update from client, reads in the server and updates in packet more The effective period of new modulus value and modulus value;
Step A2: the server judges that whether the client sends the time for updating request in the effective of the modulus value Within period, if so, executing step A3;Otherwise, step A6 is executed;
Step A3, the server carry out the update modulus value updated in packet according to the information updated in request It calculates, obtains the first operation result;
Step A4: when the server calculates the publication that the client sends the time of update request and the update is wrapped Between interval, according to it is described interval and the updates modulus value carry out calculate acquisition the second operation result;
Step A5: the server is compared first operation result and second operation result, if phase Deng execution step A6;Otherwise, the information for not allowing to update is sent to the client, is terminated;
Step A6: the server sends more new information to the client.
It specifically, include: the IP address of client in the update request from client.
Specifically, the server carries out the update modulus value updated in packet according to the information updated in request It calculates specifically: the server obtains the IP address of the client from the update request, according to the client The corresponding integer of IP address carries out modulo operation to the update modulus value.
Specifically, the step A4 specifically: the server client sends time and the institute for updating request The interval for stating the issuing time for updating packet carries out modulo operation to the update modulus value and obtains the second operation result.
Specifically, after the server sends more new information to client, further includes: the client reception is described more New information, and operated according to the more new information.
Specifically, the client is operated according to the more new information, specifically: if the client receives More new information be do not update, the client without update;If the more new information that the client receives is direct It updates, the client downloads are mounted directly after updating packet;If the more new information that the client receives is optional update, Judge whether that selection updates immediately according to user's selection, if so, the client updates immediately;Otherwise, the client is not It updates.
The present invention provides a kind of method that server process updates request, the method can also include:
Step B1: server receives the update request from client;
Step B2: the server reads this area according to the update request area code, according to the area code The total quantity for the client not updated;
Step B3: whether the total quantity of the server judgement client not updated is more than threshold value, if so, holding Row step B4;Otherwise, the server notifies the client directly to update;
Step B4: the server is asked according to total quantity, the threshold value and the update of the client not updated It asks calculate and obtains calculated result;
Step B5: the server judges whether the calculated result is 0, if so, executing step B6;Otherwise, described Server sends the notice for not allowing to update to the client, terminates;
Step B6: the server sends more new information to the client;
Step B7: the server receives client-side information after the update that the client returns, and according to the update Client-side information afterwards is updated the server internal information.
It specifically, include: the IP address of client in the update request.
Specifically, the threshold value are as follows: the server allows while the maximum value of the client terminal quantity of update.
Specifically, the step B4 includes: that the server calculates the total quantity of the client not updated and described The integral multiple of threshold value calculates the corresponding integer of the IP address according to the IP address for updating the client in request, uses institute It states IP address corresponding integer and calculated result is calculated to integral multiple progress modulus.
Specifically, the server internal information are as follows: the content in scale of installing in server.
Specifically, after the server sends more new information to the client, further includes: the client receives institute More new information is stated, and is operated according to the more new information.
Specifically, the client is operated according to the more new information, comprising: if what the client received More new information is not update, and the client is without updating;If the more new information that the client receives is directly more Newly, the client downloads are mounted directly after updating packet;If the more new information that the client receives is optional update, root Judge whether that selection updates immediately according to user's selection, if so, the client updates immediately;Otherwise, the client is not more Newly.
The present invention provides a kind of method that processing updates request, the method can also include:
Step C1: server receives the update request from client;
Step C2: the server according to current white list judge the client whether in the white list, such as Fruit is to execute step C3;Otherwise, the server sends the notice for not allowing to update to the client, terminates;
Step C3: the server sends more new information to the client;
Step C4: the server receives the information that the client returns and by the information update of the return described in In server internal information.
Specifically, the information update of the return is to server internal information are as follows: in the server update installation scale Content, and according to installation scale in content update white list.
Correspondingly, the server determines current white list according to the client for allowing to be updated, and specifically includes:
Step C11: the server obtains version number and the threshold value of latest edition;
Step C12: the server obtains the quantity for not updating client according to the version number of the latest edition;
Step C13: the server judgement is described not to update whether the quantity of client is more than the threshold value, if so, Execute step C14;Otherwise, all clients directly upgrade;
Step C14: the server calculating is described not to update the quantity of client and the integral multiple of the threshold value;
Step C15: the server calculates the white list according to update request and the integral multiple.
Correspondingly, the server obtains the quantity for not updating client according to the version number of the latest edition, specifically Are as follows: the server does not update according to described less than the item number determination of the record of the version number of current latest edition in installation scale The quantity of client.
Specifically, the threshold value are as follows: the server allows while the maximum value of the client terminal quantity of update.
Specifically, described to update the IP address that request includes: client.
Specifically, after the server sends more new information to the client, further includes: the client receives institute More new information is stated, and is operated according to the more new information.
Specifically, the basis more new information is operated, comprising: if the more new information that the client receives is It does not update, the client is without updating;If the more new information that the client receives is directly to update, the client End downloading is mounted directly after updating packet;If the more new information that the client receives is optional update, selected according to user Judge whether that selection updates immediately, if so, the client updates immediately;Otherwise, the client does not update.
The present invention also provides the server system that a kind of processing updates request, the server system includes:
Receiving module for receiving the update request from client, and reads in the server and updates in packet more The effective period of new modulus value and modulus value;
First judgment module, for judging that whether the client sends the time for updating request in the effective of the modulus value Within period;
First computing module, for the information in being requested according to the update from client in update packet Modulus value is updated to be calculated;
Second computing module, when sending the time for updating request and the publication for updating packet for calculating the client Between between interval, and according to it is described interval and it is described update packet in update modulus value calculated;
Second judgment module, for judging the calculated result of the first computing module and the calculating knot of second computing module Whether fruit is equal;
Sending module, for sending more new information to the client.
Specifically, first computing module is specifically used for the IP of the client is obtained from the update request Location obtains the corresponding integer of the IP address according to the IP address, and with the integer to the update mould updated in packet Value carries out modulus calculating.
Specifically, second computing module be specifically used for calculating the client send update time of request with it is described The interval between the issuing time of packet is updated, modulus calculating is carried out to the update modulus value with the interval.
Specifically, the sending module is specifically used for being sent according to the result that the second judgment module obtains to the client Update, do not update or select the more new information updated.
The present invention provides the server system that a kind of processing updates request, the server system can also include:
First receiving module, for receiving the update request from client, and according to the update request area Code;
First judgment module, for judged according to the area code client that this area does not update quantity whether be more than Threshold value;
Computing module, for according to the total quantity of the client not updated, the threshold value and the update request into Row calculates;
Second judgment module, for judging whether the result that the computing module calculates is 0;
Sending module, for sending more new information to the client;
Second receiving module, the information of client after the update for receiving client return;
Update module, for according to the information of client after the received update of the receiving module to the server Internal information is updated;
The present invention provides the server system that also a kind of processing updates request, and the server system can also include:
First receiving module, for receiving the update request from client;
Computing module, for calculating the white list of client;
Judgment module, for according to updates request, judge the client whether the client white list In;
Sending module, for according to the judgment module judge as a result, to the client send more new information;
Second receiving module, for receive update after client information;
Update module, the information update of client is to the service after the update for being received according to the receiving module In device internal information.
The beneficial effect of this method is: can be effectively relieved software when new version is just issued for a period of time in, client The centrally updated problem for causing server stress excessive is held, and reduces server end resource consumption, enhances client use Family experience.
Detailed description of the invention
Illustrate the embodiment of the present invention or technical solution in the prior art in order to clearer, to embodiment or will show below There is attached drawing needed in technical description to do simple introduction, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Other accompanying drawings can also be obtained according to these attached drawings.
Fig. 1 is the flow chart that a kind of server process provided in the embodiment of the present invention 1 updates the method for request;
Fig. 2 is the flow chart that a kind of server process provided in the embodiment of the present invention 2 updates the method for request;
Fig. 3 and Fig. 4 is the flow chart that a kind of server process provided in the embodiment of the present invention 3 updates the method for request.
Fig. 5 is the block diagram that a kind of processing provided in the embodiment of the present invention 4 updates the server system of request.
Fig. 6 is the block diagram that another processing provided in the embodiment of the present invention 5 updates the server system of request.
Fig. 7 is the block diagram that another processing provided in the embodiment of the present invention 6 updates the server system of request.
Specific embodiment
With reference to the attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Description, it is clear that described embodiment is only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Embodiment 1
The embodiment of the present invention 1 provides a kind of method of server process update request, and referring to Fig. 1, the method is specific Process includes:
Step 101: the current version number of IP address and the client of the server reception from client;
Wherein, before step 101, client first sends the request of software upgrading to server.
Step 102: update modulus value, the modulus value that the server reads the update packet of current preset from database come into force week Phase and update mark;
Specifically, the server includes management platform and service platform;The service platform utilizes sql sentence, by master Version, small version, revisions number and the sequence of compiling number are sorted, and the version of newest publication is then retrieved from database This reads the version number of newest released version, update indicates, update modulus value, modulus value comes into force the period.
Wherein, the management platform obtains the version information of the update packet of administrator's typing, which is stored into In database, the service platform reads the version information for updating packet.The management platform passes through with the service platform Database completes information sharing.
Wherein, the version information for updating packet includes: new version compressed package, the version number of new version, administrator setting Update mark, update packet and update modulus value and modulus value and come into force the period.New version compressed package can be the compressed package of ZIP format; The version number of new version is for judging whether the client of current accessed needs to update.
Step 103: the server judges whether the update modulus value comes into force within the period in the modulus value, if so, Execute step 104;Otherwise, step 108 is executed;
Wherein, the update modulus value and modulus value come into force the period for pre-set two positive integers, according to update modulus value The constant of the quantity setting of the client of new version is not downloaded;Modulus value comes into force the issue date that the period is current date and new version Be separated by number of days;When administrator issues new version, the update modulus value and modulus value for updating packet period of coming into force can change.
Step 104: the server obtains the IP address of the client, and is calculated according to the IP address of the client The corresponding integer of IP.
Specifically, the method that the corresponding integer of IP is calculated according to the IP address of the client are as follows: the IP of client The of the IP address of IP address the second field * 256*256+ client of first field * 256*256*256+ client of address 4th field of three field * 256+ client ips.
For example, the IP address of client is 10.1.0.129, then following calculating is done according to the IP address of the client: 10*256*256*256+1*256*256+0*256+129, obtained integer are 167837825.
Step 105: the server wraps the update with the integer that the IP address according to client is calculated Middle update modulus value carries out modulo operation and obtains the first operation result;
For example, the IP address of client is 10.1.0.129, and when the update modulus value for updating packet is 5, server institute The IP address for stating client is calculated: 10*256*256*256+1*256*256+0*256+129 and obtains integer 167837852, the server carries out modulo operation to the update modulus value 5 with the integer and obtains the first operation result;Tool Body, the first operation result is 0.
Step 106: the server with the modulus value come into force the period to the update packet in update modulus value carry out modulus fortune It calculates and obtains the second operation result.
For example, current date is on April 29th, 2015, issue date is on April 16th, 2015, and the modulus value comes into force the period It is 13 days, when the update modulus value for updating packet is 5, then the server comes into force the period to update packet update modulus value 5 with modulus value Modulo operation is carried out, the second operation result is obtained;Specifically, the second operation result is 3.
Step 107: the server judges whether the first operation result is equal to second operation result, if so, holding Row step 108;Otherwise, refusal updates.
Step 108: the server returns to the update mark for updating packet to the client.
Specifically, the server, which configures to return to the client according to the update mark of administrator setting, updates mark Will;
Wherein, if updating mark configuration is not update, the first default mark is returned;If it is vertical for updating mark configuration It updates, then returns to the second default mark;If updating mark is configured to optional update, the default mark of third is returned;
When the client receives update mark, further includes: the client judges the update mark, such as When the update mark that fruit returns is the described first default mark, then without updating, process terminates the client;If updated When mark presets mark for described second, the client is updated immediately, specifically, client is downloaded from the server It is mounted directly after updating packet, after being installed, the client to server end return machine code, (uniquely mark by client computer Know), version number and other environmental informations;Indicate that the client chooses whether when updating mark for the third if updated It updates immediately, if so, the client updates immediately, and returns to machine code (client computer unique identification), version to server Number and other environmental informations;Otherwise, process terminates.
Wherein, the described first default mark can be 0;The second default mark can be 1;The default mark of the third It can be 2.
When update mark presets mark for first, client is without updating;It should be noted that client can Website is updated voluntarily to log in, is downloaded.
When update mark is the second default mark, when client is installed starting for the first time can on send machine code (unique identification) and version number and relevant context information.
When the update mark is that the third updates mark, client is shown in system tray " has new update packet Whether decision updates ", it is selected according to user, judges whether to update immediately.
Step 109: the server receives the information that the client returns.
Specifically, the information that the client returns include: client machine code (unique identification) and client it is current Version number.
Further further include the information that the server is returned according to the client, updates client environment record Data.
Embodiment 2
The embodiment of the present invention 2 provides a kind of method of server process update request, and referring to fig. 2, the method is specific Process includes:
Step 201: server receives the IP address of the client from client and the current version of the client This number.
Step 202: the server reads the latest edition for updating packet.
Specifically, the server includes service platform and management platform, and the service platform utilizes sql sentence, by master Version, small version, revisions number and the sequence of compiling number are sorted, and the version of newest publication is retrieved from database.
Wherein, the management platform obtains the version information of the update packet of administrator's typing, which is stored into In database, the service platform reads the version information for updating packet.The management platform passes through with the service platform Database completes information sharing.
Wherein, the version information for updating packet includes: new version compressed package, the version number of new version, administrator setting Update mark, update packet and update modulus value and modulus value and come into force the period.New version compressed package can be the compressed package of ZIP format; The version number of new version is for judging whether the client of current accessed needs to update.
Step 203: the server obtains area code according to the IP address of the client, reads the ground according to area code Area does not update client sum.
Specifically, area code corresponds to the client sum of this area not updated, and the server passes through according to area code Sql sentence obtains the sum for the client that this area does not update.
Step 204: server judgement does not update whether client sum is more than threshold value, if so, thening follow the steps 205; Otherwise, the client directly updates.
Wherein, it is set when the threshold value is administrator's maintenance update packet, that is, the number of users for allowing while downloading Maximum value.
Step 205: the server obtains the IP address of the client, and is calculated according to the IP address of the client The corresponding integer of IP.
Specifically, the corresponding integer of IP is calculated according to the IP address of the client specifically: the IP address of client The third word of the IP address of second field * 256*256+ client of the IP address of the first field * 256*256*256+ client 4th field of the IP address of section * 256+ client.
For example, the IP address of client is 10.1.0.129, then the IP calculated according to the IP address of the client is corresponding Integer be the integer that 10*256*256*256+1*256*256+0*256+129 is obtained be 167837825.
Step 206: the integral multiple that the server calculates the quantity and threshold value that do not update client obtains the first integral multiple, The corresponding integer of resulting IP is calculated to the first integral multiple modulus with according to the IP address of the client.
Such as: not updating client terminal quantity is 1000, and threshold value is set as 100, then the first integral multiple is 10;Assuming that client The address of IP is 10.1.0.129, then calculating the corresponding integer of gained IP according to IP address is 167837825, then according to Integer 167837825 is 5 to the result of 10 modulus of the first integral multiple.
Step 207: the server judges to calculate the corresponding integer pair of resulting IP according to the IP address of the client Whether the resulting result of the first integral multiple modulus is 0, if so, executing step 208;Otherwise, terminate.
Step 208: the server is returned to the client updates mark;
Specifically, when the server, which returns to the update to client, to be indicated, the client judges the update Mark, if updating mark for the 4th default mark, client judges whether that selection updates immediately;If it is the 5th pre- bidding Will, the client update immediately, and the server will be given in latest edition environmental information;Wherein the described 4th pre- bidding Will is the mark for choosing whether to update for identity user;Described 5th default mark is for identifying the mark for forcing to update;
Specifically, when updating mark is the described 5th default mark, further includes: the client installation, which updates, wraps, and The server will be given in latest edition environmental information;
When the client judges whether that selection updates, further includes: when user's selection updates immediately, then the client End installation updates packet, and the server will be given in latest edition environmental information;Otherwise, process terminates;
Specifically, client shows " having whether new update packet determines to update " in system tray, is selected according to user, Judge whether to update immediately.
Specifically, the client installation updates packet further include: client is direct after the completion of server downloading update packet Installation.
Step 209: the server receives the information for the updated client that the client returns.
Specifically, the server receives the client machine code of the client return and the version that client is current Number.
Wherein, after the server receives the machine code and current version number that the client returns, further includes: will return The machine code and current version number returned and other environmental datas are stored into the installation scale stored in server;The installation amount Table is the summary table that server is counted according to the version number of the client machine code sent in client and latest edition;It is described It include: that the machine code of client, area code, the version number field of version installation record and client are worked as in installation scale The information such as preceding version number.
Step 210: the information for the updated client that the server is returned according to the client carries out server Internal information updates.
Specifically, after server receives the machine code and the client current version number that client returns, change dress The version number field of the record of version installation in machine scale.
Embodiment 3
The embodiment of the present invention 3 provides a kind of method of server process update request, comprising:
Server calculates IP white list, through the IP address that judges to send in client whether in the IP white list, Judge whether the client can update.
Wherein, the server calculates the IP white list, specifically includes as shown in Figure 3:
Step 301: server, which is read, updates packet, obtains pre-set threshold value.
Wherein, threshold value is the maximum value for the client terminal quantity for allowing while downloading.
Step 302: the server reads the version number for updating latest edition in packet.
Specifically, the server includes management platform and service platform;The service platform utilizes sql sentence, by master Version, small version, revisions number and the sequence of compiling number are sorted, and the version of newest publication is then retrieved from database This, server reads the version number of latest edition.
Step 303: the server according to installation scale in be less than current latest edition version number record item number, Judgement does not update the quantity of client.
Specifically, the server is according to the version number of the client in the installation scale and the version of current latest edition This number comparison, judgement are not updated to the quantity of the client of latest edition.
Wherein, the installation scale is version of the server according to the client machine code sent in client and latest edition Number summary table counted;It include: the machine code of client, area code, version peace in installation scale in the installation scale The information such as the version number field of the record of loading amount and client current version number.Wherein, machine code is passed through by client The exclusive identification code of CPU, hard disk and network interface card are composed.
Step 304: the server judgement does not update whether the quantity of client is more than the threshold value, if so, executing Step 305;Otherwise, all clients directly update, and terminate.
Wherein, if client terminal quantity is more than threshold value, when illustrating that all clients not updated update together, server is given It causes stress excessive;If not updating client terminal quantity is not above threshold value, server can carry all clients together more Newly.
Step 305: it is whole that the integral multiple that the server calculates the quantity and the threshold value that do not update client obtains second Several times.
Step 306: the server calculates IP white list according to the IP address and the second integral multiple of the client.
Specifically, last position of the IP address of the client obtains segments divided by second integral multiple, is arrived with 0 Random number between the segments is as the foundation for determining IP white list;
It is wherein, described to use 0 foundation to the random number between the segments as decision IP white list, specifically: 0 arrives institute The random number stated between segments obtains any one number x therein by Math.random function, determines may be updated by x Paragraph, the IP that can be updated, the IP drawn a circle to approve are then drawn a circle to approve according to the beginning of paragraph number and cut-off number Address is IP white list.
Wherein, last position of IP address is up to 255.
It after IP white list has been calculated in the server, further include every excessively scheduled time, being returned to step 304;This reality It applies in example, setting was every five hours, return step 304.
By judging whether the IP address sent in client meets the rule of IP paragraph, judge whether the client can be with It updates, as shown in figure 4, specifically including:
Step 401: the server receives the IP address of the client.
Step 402: the server is filtered according to the IP white list, judge the client IP address whether In IP white list, if so, the server is sent to the client updates mark, step 403 is then executed;Otherwise, Process terminates.
Wherein, after client update is completed, further includes: the user end to server returns to updated client Information.
Step 403: the server receives the information for the updated client that the client returns.
Wherein, the information of the updated client specifically includes: the machine code of client and the version of current version Number.
Step 404: the information update for the updated client that the server returns to the client received Into installation scale.
Embodiment 4
The embodiment of the present invention 4 provides a kind of server system of processing update request, as shown in Figure 5, comprising:
Receiving module for receiving the update request from client, and reads in the server and updates in packet more The effective period of new modulus value and modulus value;
First judgment module, for judge the client send update request time whether modulus value effective period Within;
First computing module, for the update according to the information in the update request from client to updating in packet Modulus value is calculated;
Specifically, the first computing module is used to obtain the IP address of the client from the update request, according to institute It states IP address and obtains the corresponding integer of IP address, and modulus calculating is carried out to the update modulus value updated in packet with the integer.
Second computing module, between calculating the time of client transmission update request and updating between packet issuing time Every, and calculated according to the interval and update modulus value;
Specifically, it is sent between the time and the update packet issuing time that update request for calculating the client Every, with it is described interval modulus calculating is carried out to the update modulus value.
Second judgment module, for judge the first computing module calculated result and the second computing module calculated result whether phase Deng;
Sending module is specifically obtained according to second judgment module for sending more new information to the client Result to the client send update, do not update or select update more new information.
Embodiment 5
The present embodiment 5 provides a kind of server system of processing update request, as shown in Figure 6, comprising:
First receiving module, for receiving the update request from client;
First judgment module is sentenced for the update request area code according to the client according to the area code Whether the quantity for the client that disconnected this area does not update is more than threshold value;
Computing module, for being calculated according to quantity, threshold value and the update request for the client not updated;Specifically Ground calculates the quantity for the client not updated and the integral multiple of threshold value, according to the IP address for updating the client in request The corresponding integer of the IP address is calculated, modulus calculating is carried out to the integral multiple with the IP address corresponding integer.
Second judgment module, for judging whether the result that the computing module calculates is 0;
Sending module, for sending more new information to the client;Specifically, judged according to second judgment module Result to the client send update, do not update or select update more new information.
Second receiving module, for receive update after client information.
Update module is used for according to the received updated information of client of the receiving module to the server Internal information is updated;Specifically, according to the updated information of the client received, to installation amount in the server Content in table is updated.
Embodiment 6
The present embodiment 6 provides a kind of server system of processing update request, as shown in fig. 7, comprises:
First receiving module, for receiving the update request from client.
Whether computing module judges the client in client white list for being requested according to the update.
Judgment module, for according to updates request, judge the client whether the client white list In.
Sending module, for according to the judgment module judge as a result, to the client send more new information.
Second receiving module, for receiving the information of updated client.
Update module, the information of the updated client for being received according to receiving module, by updated client The information update at end is into the server internal information;Specifically, the content of server internal installation scale is updated;
Correspondingly, computing module is specifically used for obtaining the version number for the latest edition for updating packet and threshold value, and acquisition does not update Client quantity, calculate the integral multiple of the quantity of client and the threshold value that do not update, and according to updates request The white list for the client that can upgrade is calculated with the integral multiple;
Correspondingly, computing module is also particularly useful for the record according to the version number for being less than current latest edition in installation scale Item number calculate the quantity of client not updated.
Embodiment described above is the present invention more preferably specific embodiment, and those skilled in the art is in this hair The usual variations and alternatives carried out in bright technical proposal scope should be all included within the scope of the present invention.

Claims (26)

1. a kind of method that processing updates request, which is characterized in that the described method includes:
Step A1: server receives the request of the update from client, reads the update mould updated in packet in the server The effective period of value and modulus value;
Step A2: the server judge the client send update request time whether the modulus value effective period Within, if so, executing step A3;Otherwise, step A6 is executed;
Step A3: the server counts the update modulus value in the update packet according to the information updated in request It calculates, obtains the first operation result;
Step A4: the server calculates the client and sends the issuing time for updating the time requested and the update packet Interval carries out calculating the second operation result of acquisition according to the interval and the update modulus value;
Step A5: the server is compared first operation result and second operation result, if equal, holds Row step A6;Otherwise, the information for not allowing to update is sent to the client, is terminated;
Step A6: the server sends more new information to the client.
2. the method as described in claim 1, which is characterized in that include: client in the update request from client IP address.
3. method according to claim 2, which is characterized in that the server is according to the information updated in request to institute It states the update modulus value updated in packet to be calculated specifically: the server obtains the client from update request IP address carries out modulo operation to the update modulus value according to the corresponding integer of the IP address of the client.
4. the method as described in claim 1, which is characterized in that the step A4 specifically: the server is with the client The interval that end sends the issuing time of the time for updating request and the update packet carries out modulo operation to the update modulus value and obtains To the second operation result.
5. the method as described in claim 1, which is characterized in that the server to the client send more new information it Afterwards, further includes: the client receives the more new information, and is operated according to the more new information.
6. method as claimed in claim 5, which is characterized in that the client is operated according to the more new information, is had Body are as follows: if the more new information that the client receives is not update, the client is without updating;If the client Terminating the more new information received is directly to update, and the client downloads are mounted directly after updating packet;If client's termination The more new information received is optional update, judges whether that selection updates immediately according to user's selection, if so, the client is vertical Update;Otherwise, the client does not update.
7. a kind of method that processing updates request characterized by comprising
Step B1: server receives the update request from client;
Step B2: the server reads this area not more according to the update request area code, according to the area code The total quantity of new client;
Step B3: whether the total quantity of the server judgement client not updated is more than threshold value, if so, executing step Rapid B4;Otherwise, the server notifies the client directly to update;
Step B4: the server according to the total quantity of the client not updated, the threshold value and the update request into Row, which calculates, obtains calculated result;
Step B5: the server judges whether the calculated result is 0, if so, executing step B6;Otherwise, the service Device sends the notice for not allowing to update to the client, terminates;
Step B6: the server sends more new information to the client;
Step B7: the server receives client-side information after the update that the client returns, and according to described updated Client-side information is updated the server internal information.
8. the method for claim 7, which is characterized in that include: the IP address of client in the update request.
9. the method for claim 7, which is characterized in that the threshold value specifically: the server allows while updating Client terminal quantity maximum value.
10. method according to claim 8, which is characterized in that the step B4 is specifically included: described in the server calculates The integral multiple of the total quantity for the client not updated and the threshold value, according to the IP address meter for updating the client in request The corresponding integer of the IP address is calculated, modulus is carried out to the integral multiple with the IP address corresponding integer, calculating is calculated As a result.
11. the method for claim 7, which is characterized in that the server internal information specifically: install in server Content in scale.
12. the method for claim 7, which is characterized in that the server to the client send more new information it Afterwards, further includes: the client receives the more new information, and is operated according to the more new information.
13. method as claimed in claim 12, which is characterized in that the client is operated according to the more new information, If specifically: the more new information that the client receives is not update, and the client is without updating;If the visitor The more new information that family termination receives is directly to update, and the client downloads are mounted directly after updating packet;If the client The more new information received is optional update, judges whether that selection updates immediately according to user's selection, if so, the client It updates immediately;Otherwise, the client does not update.
14. a kind of method that processing updates request characterized by comprising
Step C1: server receives the update request from client;
Step C2: the server according to current white list judge the client whether in the white list, if so, Execute step C3;Otherwise, the server sends the notice for not allowing to update to the client, terminates;
Step C3: the server sends more new information to the client;
Step C4: the server receives the information that the client returns and by the information update of the return to the service In device internal information;
The method also includes: the server determines current white list according to the client for allowing to be updated, and specifically includes:
Step C11: the server obtains version number and the threshold value of latest edition;
Step C12: the server obtains the quantity for not updating client according to the version number of the latest edition;
Step C13: the server judgement is described not to update whether the quantity of client is more than the threshold value, if so, executing Step C14;Otherwise, all clients directly upgrade;
Step C14: the server calculating is described not to update the quantity of client and the integral multiple of the threshold value;
Step C15: the server calculates the white list according to update request and the integral multiple;
The information update by the return is into server internal information specifically: in the server update installation scale Content, and according to installation scale in content update described in white list;
The server obtains the quantity for not updating client according to the version number of the latest edition, specifically: the service Device determines the number for not updating client according to the item number of the record for the version number for being less than current latest edition in installation scale Amount;
The server allows while the maximum value of the client terminal quantity of update.
15. method as claimed in claim 14, which is characterized in that described to update the IP address that request includes: client.
16. method as claimed in claim 14, which is characterized in that the server to the client send more new information it Afterwards, further includes: the client receives the more new information, and is operated according to the more new information.
17. the method described in claim 16, which is characterized in that it is described that more new information is operated according to, specifically: If the more new information that the client receives is not update, the client is without updating;If client's termination The more new information received is directly to update, and the client downloads are mounted directly after updating packet;If the client receives More new information be optional update, judge whether that selection updates immediately according to user's selection, if so, the client is immediately more Newly;Otherwise, the client does not update.
18. the server system that a kind of processing updates request characterized by comprising
Receiving module for receiving the update request from client, and reads the update mould updated in packet in the server The effective period of value and modulus value;
First judgment module, for judge the client send update request time whether the modulus value effective period Within;
First computing module, for the information in being requested according to the update from client to the update updated in packet Modulus value is calculated;
Second computing module, for calculate the client send update request time and the issuing time for updating packet it Between interval, and according to the time interval and it is described update packet in update modulus value calculated;
Second judgment module, for judging the calculated result of first computing module and the calculating knot of second computing module Whether fruit is equal;
Sending module, for sending more new information to the client.
19. server system as claimed in claim 18, which is characterized in that first computing module is specifically used for from described The IP address for obtaining the client in request is updated, the corresponding integer of the IP address is obtained according to the IP address, is used in combination The integer carries out modulus calculating to the update modulus value updated in packet.
20. server system as claimed in claim 18, which is characterized in that second computing module is specifically used for calculating institute It states client and sends the time for updating request and the interval updated between the issuing time wrapped, and with the interval to described It updates modulus value and carries out modulus calculating.
21. server system as claimed in claim 18, which is characterized in that the sending module is specifically used for according to described the The result that two judgment modules obtain sends the more new information for updating, not updating or selecting to update to the client.
22. the server system that a kind of processing updates request characterized by comprising
First receiving module, for receiving the update request from client, and according to the update request area code;
First judgment module, for judging whether the quantity of client that this area does not update is more than threshold according to the area code Value;
Computing module, based on being carried out according to the total quantity of the client not updated, the threshold value and update request It calculates;
Second judgment module, for judging whether the result that the computing module calculates is 0;
Sending module, for sending more new information to the client;
Second receiving module, the information of client after the update for receiving client return;
Update module, for according to the information of client after the received update of the receiving module to the server internal Information be updated.
23. server system as claimed in claim 22, which is characterized in that it is described not that the computing module is specifically used for calculating The integral multiple of the total quantity of the client of update and the threshold value is calculated according to the IP address for updating the client in request The corresponding integer of the IP address, carries out modulus calculating to the integral multiple with the corresponding integer of the IP address.
24. server system as claimed in claim 22, which is characterized in that the sending module is specifically used for according to described the The obtained result of two judgment modules judgement sends the more new information for updating, not updating or selecting to update to the client.
25. server system as claimed in claim 22, which is characterized in that the update module is specifically used for basis and receives Update after client-side information, in the server install scale in content be updated.
26. the server system that a kind of processing updates request characterized by comprising
First receiving module, for receiving the update request from client;
Computing module, for calculating the white list of client;
Whether judgment module judges the client in the white list of the client for being requested according to the update;
Sending module, for according to the judgment module judge as a result, to the client send more new information;
Second receiving module, for receiving the information of client return;
Update module, after the update for being received according to the receiving module in the information update of client to the server In portion's information;
The update module is specifically used for updating the content of server internal dress gauge table;
The computing module is specifically used for obtaining the version number for the latest edition for updating packet and threshold value, and acquisition does not update client Quantity calculates the integral multiple of the quantity and the threshold value that do not update client, and according to update request and the integral multiple Calculate the white list;
The computing module also particularly useful for according to installation scale in be less than current latest edition version number record item number Calculate the quantity for not updating client;
The computing module is specifically used for version number and threshold value by obtaining the latest edition for updating packet, and acquisition does not update client The quantity at end, calculate do not update client quantity and the threshold value integral multiple, and according to updates request with it is described whole Several times calculate the white list.
CN201510541890.1A 2015-08-28 2015-08-28 A kind of processing updates the method and server system of request Active CN105245567B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510541890.1A CN105245567B (en) 2015-08-28 2015-08-28 A kind of processing updates the method and server system of request

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510541890.1A CN105245567B (en) 2015-08-28 2015-08-28 A kind of processing updates the method and server system of request

Publications (2)

Publication Number Publication Date
CN105245567A CN105245567A (en) 2016-01-13
CN105245567B true CN105245567B (en) 2019-01-22

Family

ID=55043065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510541890.1A Active CN105245567B (en) 2015-08-28 2015-08-28 A kind of processing updates the method and server system of request

Country Status (1)

Country Link
CN (1) CN105245567B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106059844A (en) * 2016-08-17 2016-10-26 洑云龙 Client hot-update method
CN106412696B (en) * 2016-09-20 2019-09-06 深圳Tcl数字技术有限公司 The method for upgrading system and device of smart television
CN108696374B (en) * 2017-04-10 2021-10-01 北京京东尚科信息技术有限公司 Method and device for updating client configuration
CN110069505B (en) * 2017-09-21 2021-12-24 张锐 Offline data processing method and offline data updating device
CN110730090B (en) * 2019-09-05 2023-02-03 深圳平安通信科技有限公司 Batch updating method, device, medium and electronic equipment for agent terminals in cloud environment
CN111142905B (en) * 2019-12-25 2024-05-10 深圳市亿道信息股份有限公司 OTA upgrading method, OTA server and OTA upgrading system
CN115914451A (en) * 2022-10-27 2023-04-04 兴业银行股份有限公司 Forced updating method and system for android application version

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009589A (en) * 2006-01-26 2007-08-01 腾讯科技(深圳)有限公司 A method and system for software upgrade
CN102387165A (en) * 2010-08-27 2012-03-21 腾讯科技(深圳)有限公司 System and method for upgrading software
CN103248644A (en) * 2012-02-08 2013-08-14 腾讯科技(深圳)有限公司 Load balancing method and device for upgrade detection tasks of plug-in unit
CN104066077A (en) * 2014-06-24 2014-09-24 青岛海信移动通信技术股份有限公司 OTA downloading and upgrading method and device thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009589A (en) * 2006-01-26 2007-08-01 腾讯科技(深圳)有限公司 A method and system for software upgrade
CN102387165A (en) * 2010-08-27 2012-03-21 腾讯科技(深圳)有限公司 System and method for upgrading software
CN103248644A (en) * 2012-02-08 2013-08-14 腾讯科技(深圳)有限公司 Load balancing method and device for upgrade detection tasks of plug-in unit
CN104066077A (en) * 2014-06-24 2014-09-24 青岛海信移动通信技术股份有限公司 OTA downloading and upgrading method and device thereof

Also Published As

Publication number Publication date
CN105245567A (en) 2016-01-13

Similar Documents

Publication Publication Date Title
CN105245567B (en) A kind of processing updates the method and server system of request
CN109246229B (en) Method and device for distributing resource acquisition request
CN108776934B (en) Distributed data calculation method and device, computer equipment and readable storage medium
CN108829581B (en) Application program testing method and device, computer equipment and storage medium
CN110995836A (en) Log management method, device, storage medium and device based on Internet of vehicles platform
CN111918225B (en) Method for sending short message based on multiple operators
CN112162865A (en) Server scheduling method and device and server
EP2989543B1 (en) Method and device for updating client
CN108111331A (en) Acquisition methods, device, storage medium, processor and the system of updated data package
CN112000355B (en) Method and device for firmware upgrading and household appliance
CN109949062B (en) Application software promotion platform confirmation method and device, storage medium and electronic equipment
CN105786549B (en) Smart machine and its upgrade method
KR101816589B1 (en) Method of updating software list on software as a service and system for the same
CN109002424B (en) File format conversion method and device, computer equipment and storage medium
CN112486535B (en) Remote upgrading method and system for NB-IoT (NB-IoT) equipment
CN113411404A (en) File downloading method, device, server and storage medium
CN110888658A (en) Dynamic method and device for functional module in application program and storage medium
CN112506584A (en) Resource file loading method, device, equipment, storage medium and product
CN112954040A (en) Method, system, device and storage medium for embedding application release server
CN104683473A (en) Service quality monitoring method, server side, client and system
CN115001967A (en) Data acquisition method and device, electronic equipment and storage medium
CN116489143A (en) Data downloading method and related device
CN111314446B (en) Resource updating method, device, server and storage medium
CN105512332A (en) Method for linking and adjusting data between databases, device and system
CN115022171A (en) Optimization method and device for updating interface, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100085 Beijing city Haidian District Xueqing Road No. 9 Ebizal building B building room 205

Applicant after: Beijing Jianshi Chengxin Technologies Co., Ltd.

Address before: 100085 Beijing city Haidian District Xueqing Road No. 9 Ebizal building 17 floor B building

Applicant before: Beijing Jianshi Chengxin Technologies Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant