Client fault processing method and device

By saving the mapping relationship between the client and the communication channel, and directly calling the client interface to obtain fault processing data, the problem of inefficient fault processing caused by inconsistent remote tool versions is solved, and real-time monitoring and efficient fault processing are achieved.

CN118677752APending Publication Date: 2024-09-20BEIJING JINGDONG TUOXIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310266962.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-14
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

When relying on remote tools to handle client faults in the existing technology, version inconsistency results in failure to obtain fault handling data, and monitoring client usage status is inefficient.

Method used

By saving the mapping relationship between the client and the communication channel, calling the client interface to obtain fault processing data, monitoring the client status in real time, and improving fault processing efficiency.

Benefits of technology

There is no need to rely on remote tools to obtain client fault handling data and monitor client usage status in real time, significantly improving the efficiency of client fault handling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677752A
    Figure CN118677752A
Patent Text Reader

Abstract

The invention discloses a client fault processing method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the steps that in response to a received fault processing request sent by a client, a communication channel identifier corresponding to the client is acquired according to the fault processing request, and the fault processing request comprises an interface calling parameter corresponding to the client; according to the interface calling parameter, calling an interface corresponding to the client through the communication channel identifier to obtain fault processing data; and performing fault processing on the client according to the fault processing data. According to the embodiment, the mapping relation between the client and the communication channel is stored, the interface corresponding to the client is called through the communication channel to obtain the fault processing data, fault processing can be carried out without depending on a remote tool, the fault processing data of the client can be obtained from the server, the use state of the client can be monitored in real time, and the user experience is improved. And the client fault processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for processing client failures. Background Art

[0002] When a user uses the client on the local machine to perform business operations, the generated business data will be stored in the user's local machine database. When a client fails, the client needs to be troubleshooted. The current solution for handling client failures is to operate the user's local machine through remote tools to troubleshoot the client.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0004] Relying on remote tools for troubleshooting requires that the versions of the remote tools on both sides be consistent. If the versions are inconsistent, the client's fault handling data cannot be obtained from the server, the client's usage status cannot be monitored, and the efficiency of handling client faults is low. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a method and device for processing client faults, which saves the mapping relationship between the client and the communication channel, calls the corresponding interface of the client through the communication channel to obtain fault processing data, does not need to rely on remote tools for fault processing, can obtain the client's fault processing data from the server, can monitor the client's usage status in real time, and improve the efficiency of processing client faults.

[0006] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for processing a client failure is provided.

[0007] A method for handling client faults, comprising: in response to receiving a fault handling request sent by a client, obtaining a communication channel identifier corresponding to the client according to the fault handling request, the fault handling request including an interface call parameter corresponding to the client; according to the interface call parameter, calling an interface corresponding to the client through the communication channel identifier to obtain fault handling data; and performing fault handling on the client according to the fault handling data.

[0008] Optionally, before receiving the fault handling request sent by the client, it also includes: in response to receiving the channel mapping request sent by the client, obtaining the communication channel identifier according to the channel mapping request; and registering the client by saving the mapping relationship between the client and the communication channel identifier.

[0009] Optionally, before registering the client by saving the mapping relationship between the client and the communication channel identifier, the method further includes: acquiring a client connection list, performing a connection check on the client according to the client connection list, and determining whether the connection check passes.

[0010] Optionally, the client connection list includes at least one client identifier of a pre-established connection, and the connection verification on the client according to the client connection list includes: determining whether there is a client identifier of the client in the client connection list; if so, the client successfully establishes the connection and the connection verification passes; otherwise, the client fails to establish the connection and the connection verification fails.

[0011] Optionally, after registering the client by saving the mapping relationship between the client and the communication channel identifier, it also includes: performing heartbeat monitoring on the client by adding a heartbeat detection event, and receiving the heartbeat event time sent by the client; when the time interval between the current time and the most recent heartbeat event time is greater than a preset time interval threshold, deleting the mapping relationship between the client and the communication channel identifier.

[0012] Optionally, when the communication channel corresponding to the client is abnormal, the mapping relationship between the client and the communication channel identifier is deleted, wherein the communication channel abnormality includes one or more of client shutdown, insufficient client memory, and client network connection failure.

[0013] Optionally, after performing fault processing on the client according to the fault processing data, the method further includes: returning a fault processing result to the client in response to receiving a data acquisition request sent by the client.

[0014] According to another aspect of an embodiment of the present invention, a device for processing a client failure is provided.

[0015] A device for processing client faults, comprising: a fault handling request response module, used to respond to a fault handling request received from a client and obtain a communication channel identifier corresponding to the client according to the fault handling request, wherein the fault handling request includes an interface call parameter corresponding to the client; a fault handling data acquisition module, used to call an interface corresponding to the client through the communication channel identifier according to the interface call parameter to obtain fault handling data; and a fault handling module, used to perform fault handling on the client according to the fault handling data.

[0016] Optionally, it further includes a client registration module, which is used to: in response to receiving a channel mapping request sent by the client, obtain the communication channel identifier according to the channel mapping request; and register the client by saving the mapping relationship between the client and the communication channel identifier.

[0017] Optionally, the client registration module is further used to: obtain a client connection list, perform connection verification on the client according to the client connection list, and determine whether the connection verification passes.

[0018] Optionally, the client connection list includes at least one client identifier of a pre-established connection, and the client registration module is further used to: determine whether the client identifier of the client exists in the client connection list; if so, the client successfully establishes the connection and the connection verification passes; otherwise, the client fails to establish the connection and the connection verification fails.

[0019] Optionally, it also includes a client monitoring module, which is used to: perform heartbeat monitoring on the client by adding a heartbeat detection event, and receive the heartbeat event time sent by the client; when the time interval between the current time and the most recent heartbeat event time is greater than a preset time interval threshold, delete the mapping relationship between the client and the communication channel identifier.

[0020] Optionally, the client monitoring module is also used to: when the communication channel corresponding to the client is abnormal, delete the mapping relationship between the client and the communication channel identifier, wherein the communication channel abnormality includes one or more of the client being shut down, insufficient client memory, and the client being unable to connect to the network.

[0021] Optionally, the fault processing module is further used to: in response to receiving a data acquisition request sent by the client, return a fault processing result to the client.

[0022] According to yet another aspect of the embodiments of the present invention, an electronic device is provided.

[0023] An electronic device includes: one or more processors; a memory for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the client failure processing method provided by an embodiment of the present invention.

[0024] According to yet another aspect of an embodiment of the present invention, a computer readable medium is provided.

[0025] A computer-readable medium stores a computer program, which, when executed by a processor, implements a method for processing a client failure provided by an embodiment of the present invention.

[0026] An embodiment of the above invention has the following advantages or beneficial effects: by responding to a fault handling request received from a client, obtaining a communication channel identifier corresponding to the client according to the fault handling request, the fault handling request includes an interface call parameter corresponding to the client; according to the interface call parameter, calling an interface corresponding to the client through the communication channel identifier to obtain fault handling data; a technical solution for performing fault handling on the client according to the fault handling data, saving a mapping relationship between the client and the communication channel, calling an interface corresponding to the client through the communication channel to obtain fault handling data, without relying on remote tools for fault handling, being able to obtain the client's fault handling data from the server, being able to monitor the client's usage status in real time, and improving the efficiency of handling client faults.

[0027] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0029] Figure 1 is a schematic diagram of main steps of a method for handling a client failure according to an embodiment of the present invention;

[0030] Figure 2 is a schematic diagram of a client registration process according to an embodiment of the present invention;

[0031] Figure 3 is a schematic diagram of a process flow of fault handling by a server according to an embodiment of the present invention;

[0032] Figure 4 is a schematic diagram of main modules of a device for processing client failure according to an embodiment of the present invention;

[0033] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0034] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0035] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0036] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of the present invention are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.

[0037] Figure 1 The figure is a schematic diagram of main steps of a method for handling a client failure according to an embodiment of the present invention.

[0038] like Figure 1 As shown, a method for handling client failures according to an embodiment of the present invention mainly includes the following steps S101 to S103.

[0039] Step S101: in response to receiving a fault handling request sent by a client, obtaining a communication channel identifier corresponding to the client according to the fault handling request, wherein the fault handling request may include an interface call parameter corresponding to the client.

[0040] In one embodiment, before receiving the fault handling request sent by the client, it can also include: in response to receiving the channel mapping request sent by the client, obtaining the communication channel identifier according to the channel mapping request; and registering the client by saving the mapping relationship between the client and the communication channel identifier.

[0041] Specifically, the mapping relationship between the client and the communication channel identifier can be saved in a relationship mapping table. The relationship mapping table includes multiple mapping relationships in use, each of which can include a client identifier, a communication channel identifier, a client address, a creation time, and a last heartbeat event time. The communication channel can be a Channel channel, that is, a network connection channel in a network programming framework.

[0042] In one embodiment, before registering the client by saving the mapping relationship between the client and the communication channel identifier, the process may further include: obtaining a client connection list, performing a connection check on the client according to the client connection list, and determining that the connection check passes.

[0043] Specifically, a client connection list is obtained from the local cache of the server, and the client connection list includes at least one client identifier of a pre-established connection. It is determined whether there is a client identifier corresponding to the channel mapping request in the client connection list. If so, it means that the client has successfully established a connection with the server in advance and the connection verification has passed. Otherwise, the client has not established a connection with the server and the connection verification has failed.

[0044] In one embodiment, after registering the client by saving the mapping relationship between the client and the communication channel identifier, it can also include: monitoring the heartbeat of the client by adding a heartbeat detection event, and receiving the heartbeat event time sent by the client; when the time interval between the current time and the most recent heartbeat event time is greater than a preset time interval threshold, deleting the mapping relationship between the client and the communication channel identifier.

[0045] Specifically, a heartbeat detection event is added to the client through IdleStateHandler (i.e., heartbeat detection processor). The heartbeat event sent by the client is received, and the time of the heartbeat event is obtained. When the server does not receive the heartbeat of the client within a preset time interval threshold (such as 1 minute) from the time of the most recent heartbeat event, the mapping relationship between the client and the communication channel identifier is removed from the relationship mapping table, thereby monitoring whether the user opens and uses the client and monitoring the user's active retention.

[0046] In one embodiment, when the communication channel corresponding to the client is abnormal, the mapping relationship between the client and the communication channel identifier is deleted, wherein the communication channel abnormality may include one or more of the client shutdown, insufficient client memory, and client network failure.

[0047] After the mapping relationship between the client and the communication channel identifier is deleted from the relationship mapping table, the client can start the reconnection mechanism and send a heartbeat event to the server. After the server receives the heartbeat event from the client, it saves the mapping relationship between the client and the communication channel identifier to the relationship mapping table again to re-register the client.

[0048] Step S102: According to the interface calling parameters, the interface corresponding to the client is called through the communication channel identifier to obtain fault processing data.

[0049] Specifically, the interface call parameters corresponding to the client are obtained from the fault handling request. According to the interface call parameters, the client's interface is called through the communication channel corresponding to the communication channel identifier. It can be annotated by custom annotation through the SPI (Serial Peripheral Interface) mechanism, and then the interface call parameters such as the interface name, the name of the method to be called, the method input parameter type, and the response type are obtained through reflection according to the annotated information. By obtaining the communication channel information of the client from the mapping relationship table, the writeAndFlush (write buffer and refresh) method call is executed. The client executes the interface method of the object through the reflection mechanism, and after execution, the method execution result (such as fault handling data) is written to the communication channel, and then sent to the server. Among them, the called method can be a method that exists in both the server and the client.

[0050] Step S103: Perform fault processing on the client according to the fault processing data.

[0051] In one embodiment, after performing fault processing on the client according to the fault processing data, the method may further include: returning the fault processing result to the client in response to receiving a data acquisition request sent by the client.

[0052] In one embodiment, the server and the client are started, and event processing is set up in the server through the Java (object-oriented programming language) high-performance network framework, a serialization mechanism is set up, a server channel processing adapter is customized, and a heartbeat sending mechanism is set up. Among them, the serialization mechanism is used to serialize and realize remote communication, that is, to transmit the byte sequence of the object on the network, and the processing adapter is used to process the business code logic of the server, such as removing the client communication channel when the connection is abnormal, and the server and the client are connected in the server channel processing adapter. The port number and IP address of the server are registered on the client to establish a connection with the server, and an event processor, a serialization mechanism, a heartbeat sending mechanism, and a client-defined processor event are set up.

[0053] Figure 2 The figure is a schematic diagram of a client registration process according to an embodiment of the present invention.

[0054] like Figure 2 As shown in the figure, the client successfully establishes a connection with the server in advance, and the client sends a channel mapping request to the server. The server receives the channel mapping request sent by the client, saves the mapping relationship in the mapping relationship table according to the channel mapping request, and registers the client. The server visualizes the connection status of the client based on the mapping relationship table, and performs heartbeat monitoring on the client. If no heartbeat is received within the set time, the communication channel is released. Based on the mapping relationship table, the server can call methods on the client, and the client can call methods on the server, thereby realizing data communication.

[0055] Figure 3 The present invention is a flowchart of a server performing fault processing according to an embodiment of the present invention.

[0056] like Figure 3As shown, in one embodiment, the server starts, and the client sends a message event to the server. The types of message events include channel mapping requests, heartbeat events, and fault handling requests. If the message event received by the server is a channel mapping request, the mapping relationship between the client and the communication channel is saved in the relationship mapping table in the server database, and the client is registered. If the message event received by the server is a heartbeat event, the time of the most recent heartbeat event of the client in the relationship mapping table is updated, and the client is monitored for heartbeats. If the message event received by the server is a fault handling request, the interface corresponding to the client is called to obtain fault handling data for fault handling.

[0057] Figure 4 4 is a schematic diagram of main modules of a device for processing client failure according to an embodiment of the present invention.

[0058] like Figure 4 As shown, a client fault processing device 400 according to an embodiment of the present invention mainly includes: a fault processing request response module 401 , a fault processing data acquisition module 402 , and a fault processing module 403 .

[0059] The fault handling request response module 401 is used to respond to receiving a fault handling request sent by the client and obtain the communication channel identifier corresponding to the client according to the fault handling request, wherein the fault handling request includes the interface call parameters corresponding to the client.

[0060] The fault processing data acquisition module 402 is used to call the interface corresponding to the client through the communication channel identifier according to the interface calling parameters to obtain the fault processing data.

[0061] The fault processing module 403 is used to perform fault processing on the client according to the fault processing data.

[0062] In one embodiment, a client registration module (not shown in the figure) may also be included, which is used to: in response to receiving a channel mapping request sent by the client, obtain a communication channel identifier according to the channel mapping request; and register the client by saving the mapping relationship between the client and the communication channel identifier.

[0063] In one embodiment, the client registration module is specifically used to: obtain a client connection list, perform connection verification on the client according to the client connection list, and determine whether the connection verification passes.

[0064] In one embodiment, the client connection list may include no less than one client identifier of a pre-established connection, and the client registration module is specifically used to: determine whether the client identifier of the client exists in the client connection list; if so, the client successfully establishes the connection and the connection verification passes; otherwise, the client fails to establish the connection and the connection verification fails.

[0065] In one embodiment, a client monitoring module (not shown in the figure) may also be included, which is used to: monitor the heartbeat of the client by adding a heartbeat detection event, and receive the heartbeat event time sent by the client; when the time interval between the current time and the most recent heartbeat event time is greater than a preset time interval threshold, delete the mapping relationship between the client and the communication channel identifier.

[0066] In one embodiment, the client monitoring module is specifically used to: delete the mapping relationship between the client and the communication channel identifier when the communication channel corresponding to the client is abnormal, wherein the communication channel abnormality includes one or more of the client being shut down, the client having insufficient memory, and the client being unable to connect to the network.

[0067] In one embodiment, the fault processing module 403 is specifically used to return the fault processing result to the client in response to receiving a data acquisition request sent by the client.

[0068] In addition, the specific implementation content of the client failure processing device in the embodiment of the present invention has been described in detail in the above client failure processing method, so the repeated content will not be described again here.

[0069] Figure 5 An exemplary system architecture 500 is shown to which a method for processing a client failure or an apparatus for processing a client failure according to an embodiment of the present invention can be applied.

[0070] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0071] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, 503, such as fault handling applications, client applications, data processing applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0072] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0073] The server 505 may be a server that provides various services, such as a background management server (only an example) that provides support for the fault handling websites browsed by the user using the terminal devices 501, 502, and 503. The background management server may respond to the received client fault handling request and other data, and obtain the communication channel identifier corresponding to the client according to the fault handling request, the fault handling request includes the interface call parameters corresponding to the client; according to the interface call parameters, call the interface corresponding to the client through the communication channel identifier to obtain fault handling data; perform fault handling and other processing on the client according to the fault handling data, and feed back the processing result (such as the client fault processing result - only an example) to the terminal device.

[0074] It should be noted that the method for processing client failures provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the device for processing client failures is generally disposed in the server 505 .

[0075] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0076] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device or a server suitable for implementing an embodiment of the present invention. Figure 6 The terminal device or server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0077] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0078] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0079] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.

[0080] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0081] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0082] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor, for example, may be described as: a processor includes a fault handling request response module 401, a fault handling data acquisition module 402, and a fault handling module. The names of these modules do not constitute a limitation on the modules themselves in some cases. For example, the fault handling request response module may also be described as "a module for obtaining a communication channel identifier corresponding to the client according to a fault handling request in response to a fault handling request received from the client."

[0083] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: in response to receiving a fault handling request sent by a client, obtaining a communication channel identifier corresponding to the client according to the fault handling request, the fault handling request including an interface call parameter corresponding to the client; according to the interface call parameter, calling the interface corresponding to the client through the communication channel identifier to obtain fault handling data; and performing fault handling on the client according to the fault handling data.

[0084] According to the technical solution of the embodiment of the present invention, in response to receiving a fault handling request sent by a client, the communication channel identifier corresponding to the client is obtained according to the fault handling request, and the fault handling request includes the interface call parameters corresponding to the client; according to the interface call parameters, the interface corresponding to the client is called through the communication channel identifier to obtain fault handling data; and the client is fault handled according to the fault handling data. The mapping relationship between the client and the communication channel is saved, and the interface corresponding to the client is called through the communication channel to obtain the fault handling data. There is no need to rely on remote tools for fault handling. The fault handling data of the client can be obtained from the server, and the usage status of the client can be monitored in real time, which improves the efficiency of handling client faults.

[0085] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for handling client failures, characterized in that: include: In response to receiving a fault handling request sent by a client, obtaining a communication channel identifier corresponding to the client according to the fault handling request, wherein the fault handling request includes an interface call parameter corresponding to the client; According to the interface calling parameter, calling the interface corresponding to the client through the communication channel identifier to obtain fault processing data; Fault processing is performed on the client according to the fault processing data.

2. The method according to claim 1, characterized in that Before receiving the fault handling request from the client, it also includes: In response to receiving a channel mapping request sent by a client, acquiring the communication channel identifier according to the channel mapping request; The client is registered by saving the mapping relationship between the client and the communication channel identifier.

3. The method according to claim 2, characterized in that Before registering the client by saving the mapping relationship between the client and the communication channel identifier, the method further includes: A client connection list is obtained, a connection check is performed on the client according to the client connection list, and it is determined that the connection check passes.

4. The method according to claim 3, characterized in that The client connection list includes at least one client identifier of a pre-established connection, and performing connection verification on the client according to the client connection list includes: Determine whether the client identifier of the client exists in the client connection list; If it exists, the client successfully establishes the connection and the connection check passes; otherwise, the client fails to establish the connection and the connection check fails.

5. The method according to claim 2, characterized in that: After registering the client by saving the mapping relationship between the client and the communication channel identifier, the method further includes: Perform heartbeat monitoring on the client by adding a heartbeat detection event, and receive the heartbeat event time sent by the client; When the time interval between the current time and the time of the most recent heartbeat event is greater than a preset time interval threshold, the mapping relationship between the client and the communication channel identifier is deleted.

6. The method according to claim 5, characterized in that When the communication channel corresponding to the client is abnormal, the mapping relationship between the client and the communication channel identifier is deleted, wherein the communication channel abnormality includes one or more of the following: the client is shut down, the client has insufficient memory, and the client cannot connect to the network.

7. The method according to claim 1, characterized in that After performing fault processing on the client according to the fault processing data, the method further includes: In response to receiving a data acquisition request sent by a client, a fault handling result is returned to the client.

8. A device for processing client failure, characterized in that: include: A fault handling request response module, configured to, in response to receiving a fault handling request sent by a client, obtain a communication channel identifier corresponding to the client according to the fault handling request, wherein the fault handling request includes an interface call parameter corresponding to the client; A fault processing data acquisition module, configured to call the interface corresponding to the client through the communication channel identifier according to the interface calling parameters to acquire fault processing data; A fault processing module is used to perform fault processing on the client according to the fault processing data.

9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.