A communication connection method, device, equipment, medium and product

By introducing a failover server on the server side to monitor the client status, the problem of device control interruption in semiconductor logistics is solved, rapid switching and communication recovery is achieved, heartbeat detection is simplified, and false alarms and missed reports are avoided.

CN116248748BActive Publication Date: 2024-12-27XIAN ESWIN MATERIAL TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310172157.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-12-27
Estimated Expiration
2043-02-27

AI Technical Summary

Technical Problem

In semiconductor logistics scenarios, in HSMS communication between the device and the host, there are false alarms and missed reports in the heartbeat signal inspection, resulting in interruption of device control and inability to reuse, and the Host software of different manufacturers is poor, resulting in logistics paralysis.

Method used

By responding to the client's connection request on the server side, establishing a connection, obtaining the failover server information, establishing a second connection, sending client information to the failover server, making it establish a third connection, and introducing a failover server to monitor the client status , handle exceptions in a timely manner to avoid connection interruption.

Benefits of technology

It realizes rapid switching and communication recovery when equipment is abnormal, avoids logistics paralysis, simplifies the heartbeat detection process, and avoids false alarms and missed reports caused by differences in Host software of different manufacturers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116248748B_ABST
    Figure CN116248748B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a communication connection method, device, equipment and medium. The method is applied to a server side, and establishes a first connection from the first client to the server side by responding to a connection request sent by a first client, then obtains the server information of the failover server sent by the first client, establishes a second connection with the failover server according to the server information, and then sends the client information of the first client to the failover server, so that the failover server establishes a third connection with the first client. By introducing a failover server, the connection between the server side and the first client is changed into a second connection from the server side to the failover server, and a third connection from the failover server to the first client, so that the first client status can be obtained in time through the failover server, so as to handle it in time when an abnormality occurs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of communication technology, and in particular, to a communication connection method, device, equipment, computer-readable storage medium, and computer program product. Background Art

[0002] In the communication connection, especially in the scenario based on high-speed secs message service (HSMS), the HSMS communication between the equipment (EQP) and the host (host) is to use the host program as the client (client) of the socket communication to connect to the device as the server (server).

[0003] In semiconductor logistics, the Management Control System (MCS) controls different equipment through controllers to schedule the entire field. For example, the Automated Guided Vehicle (AGV) is used to execute handling instructions and transport materials from the equipment loading port to the material end point to meet the equipment's loading needs. The AGV controller is used to control multiple AGVs, so the MCS controls the AGV by interacting with the AGV controller.

[0004] Normally, two hosts on the client side, such as hostA and hostB, determine each other's status by sending heartbeat signals to each other. When hostA fails, hostB detects the failure and sends a connection request to the device side (server side), so that the host side and the device side can maintain communication. In the semiconductor logistics scenario, the AGV controller is the server side and the MCS is the client side. When the MCS fails, it may cause the MCS to be unable to communicate with the AGV controller, so it may cause the AGV to be unable to be controlled, resulting in logistics paralysis.

[0005] However, the Heart Signal in the host program needs to be added and developed separately. Host software from different manufacturers cannot be reused, and the heartbeat check programs from different manufacturers have different effects, resulting in false alarms and missed alarms. Summary of the invention

[0006] In view of this, the embodiment of the present invention is intended to provide a communication connection method, which can be reused to detect abnormal situations. The present application also provides a device, equipment, medium and program product corresponding to the method.

[0007] The technical solution of the embodiment of the present invention is achieved as follows:

[0008] In a first aspect, an embodiment of the present invention provides a communication connection method, which is applied to a server side and includes:

[0009] In response to a connection request sent by a first client, establishing a first connection from the first client to the server;

[0010] Obtaining server information of the failover server sent by the first client;

[0011] establishing a second connection with the failover server according to the server information;

[0012] The client information of the first client is sent to the failover server, so that the failover server establishes a third connection with the first client.

[0013] In some possible implementations, the method further includes:

[0014] Changing the communication mode of the first connection to information transmission;

[0015] When the second connection is abnormal, sending a first connection change request to the first client, wherein the first connection change request is a request to change the communication mode of the first connection from information transmission to message transmission;

[0016] Send a target message to the first client.

[0017] In some possible implementations, sending the target message to the first client includes:

[0018] The target message is sent to the first client through a combination module, where the combination module includes an active module, a passive module and a connection module.

[0019] In some possible implementations, the method further includes:

[0020] In response to the connection request sent by the second client, a fifth connection from the second client to the server is established.

[0021] In some possible implementations, the first client and the second client are in the same cluster.

[0022] In a second aspect, an embodiment of the present invention provides a communication connection method, which is applied to a failover server and includes:

[0023] When the third connection is abnormal, a fourth connection is established with the second client, wherein the third connection is a connection from the failover server to the first client.

[0024] In a third aspect, an embodiment of the present invention provides a communication connection device, which is deployed on a server side and includes:

[0025] A first establishing module, configured to establish a first connection from the first client to the server in response to a connection request sent by the first client;

[0026] A first communication module, configured to obtain server information of a failover server sent by the first client;

[0027] A second establishing module, configured to establish a second connection with the failover server according to the server information;

[0028] The second communication module is used to send the client information of the first client to the failover server, so that the failover server establishes a third connection with the first client.

[0029] In some possible implementations, the device further includes a changing module, configured to:

[0030] Changing the communication mode of the first connection to information transmission;

[0031] When the second connection is abnormal, sending a first connection change request to the first client, wherein the first connection change request is a request to change the communication mode of the first connection from information transmission to message transmission;

[0032] Send a target message to the first client.

[0033] In some possible implementations, the changing module is further used to:

[0034] The target message is sent to the first client through a combination module, where the combination module includes an active module, a passive module and a connection module.

[0035] In some possible implementations, the first establishing module of the device is further used to:

[0036] In response to the connection request sent by the second client, a fifth connection from the second client to the server is established.

[0037] In some possible implementations, the first client and the second client are in the same cluster.

[0038] In a fourth aspect, an embodiment of the present invention provides a device, comprising a processor and a memory. The processor and the memory communicate with each other. The processor is used to execute instructions stored in the memory so that the device executes the communication connection method in the first aspect or any implementation of the first aspect.

[0039] In a fifth aspect, the present application provides a computer-readable storage medium, in which instructions are stored, and the instructions instruct a device to execute the communication connection method described in the first aspect or any implementation method of the first aspect.

[0040] In a sixth aspect, the present application provides a computer program product comprising instructions, which, when executed on a device, enables the device to execute the communication connection method described in the first aspect or any one of the implementations of the first aspect.

[0041] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations.

[0042] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0043] An embodiment of the present invention provides a communication connection method, which is applied to the server side, by responding to a connection request sent by a first client, establishing a first connection from the first client to the server side, then obtaining the server information of the failover server sent by the first client, establishing a second connection with the failover server according to the server information, and then sending the client information of the first client to the failover server, so that the failover server establishes a third connection with the first client. By introducing a failover server, the connection between the server side and the first client is changed into a second connection from the server side to the failover server, and a third connection from the failover server to the first client, so that the state of the first client can be obtained in time through the failover server, so as to handle it in time when an abnormality occurs. In semiconductor logistics, the orderly handling of materials is ensured. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical methods of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 A schematic diagram of a client-to-server transmission;

[0046] Figure 2 This is a schematic diagram of handling hostA exception;

[0047] Figure 3 A flow chart of a communication connection method provided by an embodiment of the present invention;

[0048] Figure 4 A schematic diagram of an Active Mode and Passive Mode connection;

[0049] Figure 5 A schematic diagram of a communication connection by combining modules provided in an embodiment of the present invention;

[0050] Figure 6 A schematic diagram of a first client abnormality provided by an embodiment of the present invention;

[0051] Figure 7 A schematic diagram of a failover server exception provided by an embodiment of the present invention;

[0052] Figure 8 A schematic diagram of a connection example from a client to a server provided in an embodiment of the present invention;

[0053] Fig. 9 A schematic diagram of the structure of a communication connection device provided by an embodiment of the present invention;

[0054] Fig.10 A schematic structural diagram of another communication connection device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0056] The terms "first" and "second" in the embodiments of the present application are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.

[0057] In the scenario based on high-speed secs message service (HSMS), the HSMS communication between equipment (EQP) and host is based on the host program as the client of socket communication to connect to the device as the server.

[0058] like Figure 1As shown in the figure, usually, the client transmits messages to the server in a one-way manner. In some possible situations, in order to ensure the connection and avoid the connection being interrupted due to client abnormalities, two hosts, such as hostA and hostB, are usually set up so that when one is abnormal, the other can be switched in time. The two hosts determine each other's status by sending heartbeat signals to each other.

[0059] like Figure 2 The figure shows a case where hostA is abnormal. When hostA is abnormal, the connection between hostA and the device is disconnected. After hostB detects the abnormality through the heartbeat check, it sends a connection request to the device (server), so that the host and the device maintain communication.

[0060] However, in this solution, the Heart Signal in the host program needs to be added and developed separately, the Host software of different manufacturers cannot be reused, and the heartbeat check programs of different manufacturers have different effects, resulting in false alarms and missed alarms.

[0061] In the semiconductor field, especially in the process of logistics handling, the management control system (MCS) controls different devices through controllers to perform overall scheduling. For example, the MCS communicates with the automated guided vehicle (AGV) controller to control the AGV for automatic handling.

[0062] When the MCS is abnormal, the communication connection between the MCS and the AGV controller is interrupted. The AGV controller cannot obtain the control instructions sent by the MCS, and therefore cannot send the instructions to the corresponding AGV, resulting in logistics paralysis.

[0063] In view of this, the present application provides a communication connection method, which is applied to the server side. By responding to a connection request sent by a first client, a first connection from the first client to the server side is established, and then the server information of the failover server sent by the first client is obtained, and a second connection with the failover server is established according to the server information. Then, the client information of the first client is sent to the failover server, so that the failover server establishes a third connection with the first client.

[0064] In this solution, by introducing a failover server, the connection between the server and the first client is changed into a second connection from the server to the failover server, and a third connection from the failover server to the first client. Thus, the status of the first client can be obtained in time through the failover server so that it can be processed in time when an abnormality occurs.

[0065] Therefore, in semiconductor logistics transportation, when the MCS is abnormal, this solution can quickly switch to another MCS for communication to avoid logistics paralysis due to the interruption of the connection between the MCS and the controller.

[0066] In order to facilitate the understanding of the technical solution of this application, Figure 3 A communication connection method provided by this application is introduced.

[0067] See also Figure 3 The flowchart of a communication connection method is shown in FIG. 1 , and the specific steps of the method are as follows:

[0068] S302: The server establishes a first connection from the first client to the server in response to a connection request sent by the first client.

[0069] The first client sends a connection request to the server, and the server establishes a first connection from the first client to the server in response to the connection request sent by the first client. In some possible implementations, the flexibility of this solution can be improved by adjusting the method of active initiation by the first client.

[0070] The client may be a host, the first client may be a hostA, and the server may be an EQP. Specifically, the hostA sends a connection request to the EQP, and the EQP establishes a first connection in response to the connection request.

[0071] The communication mode of the first connection can be information transmission or message transmission. Information transmission refers to the transmission of heartbeat check results, control and connection-related information, and message transmission refers to the transmission of content data.

[0072] S304: The server side obtains the server information of the failover server sent by the first client.

[0073] The server information refers to information that can be used to identify the failover server, and the server can establish a connection with the failover server through the server information. The server information includes the server Internet Protocol (IP) address and server port information.

[0074] After the first connection is established, the first client can send a message to the server through the first connection to communicate. In this solution, the first client sends the server information of the failover server to the server so that the server obtains the information and establishes a connection between the failover servers based on the information.

[0075] Specifically, hostA sends the IP address and port information of the failover server to the EQP end through the first connection, and the EQP end obtains the IP address and port information of the failover server.

[0076] S306: The server establishes a second connection with the failover server according to the server information.

[0077] Since the server information can determine the corresponding failover server, the server can establish a second connection with the failover server according to the server information. The second connection is a connection from the server to the failover server.

[0078] Specifically, the EQP end establishes a second connection to the failover server according to the IP address and port information of the failover server.

[0079] S308: The server sends the client information of the first client to the failover server, so that the failover server establishes a third connection with the first client.

[0080] After the second connection is established, the server can send the client information of the first client to the failover server through the second connection. Since there is a first connection between the server and the first client, the server can obtain the client information of the first client through a connection request when the first connection is established, or obtain the client information sent by the first client through the first connection, which is not limited in this application.

[0081] The failover server may establish a third connection to the first client according to the client information of the first client, thereby enabling the server to communicate with the first client through the failover server.

[0082] In some cases, the server and client in HSMS communication are usually one-way connections. Usually, messages are sent through the active module (Active Mode) and received through the passive module (Passive Mode).

[0083] like Figure 4 As shown in the figure, the host end establishes connection 1 to the Passive Mode of the EQP end through Active Mode, and the EQP end establishes connection 2 to the Passive Mode of the host end through Active Mode. As a result, the connection may be more complicated.

[0084] Therefore, in this solution, the Active Mode and Passive Mode can be modified to combine ActiveMode and Passive Mode and add the connect process of Control Mode. That is, the combined module (connect process) in this solution includes an active module, a passive module and a connection module. Among them, sending a target message to the first client in S308 can include: the server sends the target message to the first client through the combined module. Therefore, whether sending or receiving, it can be executed through the combined module, thereby simplifying the connection between devices.

[0085] like Figure 5 As shown, in this solution, the host and EQP communicate with each other through the combined module. Specifically, the hostA end initiates a request to establish a first connection through the connect process. After the connection is established, the host end sends the failover server IP and port information to the EQP end through the first connection. The EQP initiates a second connection to the failover server according to the IP and port information through the connect process. The failover server can forward the second connection to the hostA end and establish a third connection to the hostA end. As a result, the EQP end and the hostA end can communicate messages through the second connection and the third connection.

[0086] Among them, each connection can perform status detection. Specifically, the first connection can be used to detect the status of the first client and the server, and can be used to send the server information of the failover server from the first client to the server after the first connection is established. After the information is sent, the communication mode of the first connection is changed to information transmission. The second connection can be used to detect the status of the server and the failover processor, and after the second connection is established, the server can transmit information to the failover server. The third connection can be used to detect the status of the failover server and the first client.

[0087] Among them, the above status detection can be performed through heartbeat detection. It should be noted that the heartbeat detection in this solution is a heartbeat detection between the client and the server, and there is no need to add and develop it separately in the host program, so as to avoid the situation where it cannot be reused.

[0088] In some cases, to improve reconnection efficiency, the frequency of heartbeat detection can be changed to adjust the effect of failover recovery.

[0089] In some possible implementations, there may be abnormal situations. For example, there may be an abnormal situation of the first client, such as Figure 6When the first client is abnormal, both the first connection and the third connection are interrupted.

[0090] Since the failover server can monitor the status of the third connection, the failover server can obtain the status in time when the third connection is abnormal, so the failover server can quickly and automatically establish a fourth connection with the second client and send the relevant information of the server through the fourth connection. As a result, the second client can obtain the relevant information of the server and then send a connection request to the server. In response to the connection request, the server establishes a fifth connection from the second client to the server.

[0091] Therefore, in the case of an abnormality in the first client, the connection between the first client and the server can be directly changed to a connection between the second client and the server, thereby ensuring the stability of the connection between the server and the client.

[0092] In some possible implementations, after the server side obtains the server information of the failover server sent by the first client side, the method further includes:

[0093] S305: The server changes the communication mode of the first connection to information transmission.

[0094] When an exception occurs on the failover server, such as Figure 7 As shown, the second connection and the third connection are abnormal. The method also includes the following steps:

[0095] S310: When the second connection is abnormal, the server sends a first connection change request to the first client, where the first connection change request is a request to change the communication mode of the first connection from information transmission to message transmission.

[0096] Specifically, when the failover server is abnormal, both the second connection and the third connection are abnormal. The server can obtain the abnormality of the failover server through the abnormality of the second connection, and thus send a first connection change request to the first client to change the communication mode of the first connection from information transmission to message transmission.

[0097] like Figure 7 As shown, the server detects that the second connection is disconnected and changes the first connection to message transmission. The server sends a first connection change request to the first client. The first client receives the first connection change request and changes the first connection to message transmission. Thus, the first connection is changed to message transmission, and normal message communication can be carried out.

[0098] Furthermore, the server may establish a connection to the first client, whereby the method further comprises: the server sends a target message to the first client. Alternatively, the server may reselect a failover server for connection.

[0099] In some possible implementations, the first client and the second client can be in the same cluster or in different clusters to meet different actual needs. For example, if two computers are used as the first client and the second client respectively, when the first client and the second client are in the same cluster, when the cluster is abnormal, it may cause the first client and the second client to be unable to connect to the server, so the first client and the second client can be placed in different clusters. In other cases, when the first client and the second client are in the same cluster, the abnormality is caused only by the problem of the first client device, so the second client in the same cluster can quickly establish a connection with the server. Furthermore, the first client and the second client can be located on the same computer or on different computers.

[0100] In semiconductor logistics, take the example of MCS communicating with the AGV controller to achieve control of the AGV. It includes multiple MCSs, such as a first MCS and a second MCS. Specifically, the first MCS, as a client, sends a connection request to the AGV controller (server side) to establish a first connection, and the AGV controller responds to the connection request and establishes a first connection with the first MCS. The AGV controller obtains the server information of the failover server sent by the first MCS through the first connection, and then establishes a second connection with the failover server based on the server information, and sends the client information of the first MCS to the failover server, so that the failover server establishes a third connection with the first MCS.

[0101] When the first MCS is abnormal, the first connection is interrupted, and the failover server automatically establishes a fourth connection to the second MCS, and then sends the information of the AGV controller through the fourth connection, so that the second MCS establishes the fifth connection with the AGV controller, thereby ensuring the connection between the MCS and the AGV controller, so that the AGV controller can control the AGV according to the instructions of the MCS and ensure the orderly progress of logistics.

[0102] like Figure 8 The figure shows an example of a client-to-server connection. Specifically, the AMHS device (EQP side) and the MCS system (Host side) perform a high-availability HSMS connection example. The MCS_A server sends connection requests to STK_01, STK_02, OHT_01 and other devices respectively. After the connection is established, it sends the failover server (cluster) IP and corresponding port. STK_01, STK_02, and OHT_01 send connection requests based on the IP and corresponding port respectively. After the connection request reaches the failover server, it forwards the connection to the MCS_A and MCS_B servers according to the failover strategy and load balancing strategy.

[0103] Based on the above description, the present application provides a communication connection method, which is applied to the server side, by responding to the connection request sent by the first client, establishing a first connection from the first client to the server side, then obtaining the server information of the failover server sent by the first client, establishing a second connection with the failover server according to the server information, and then sending the client information of the first client to the failover server, so that the failover server establishes a third connection with the first client. By introducing the failover server, the connection between the server side and the first client is changed into a second connection from the server side to the failover server, and a third connection from the failover server to the first client, so that the first client status can be obtained in time through the failover server, so as to handle it in time when an abnormality occurs.

[0104] Corresponding to the above method embodiment, the present application also provides a communication connection device, which is shown in FIG. Fig. 9 The device 900 includes: a first establishing module 902, a first communication module 904, a second establishing module 906 and a second communication module 908.

[0105] A first establishing module 902, configured to establish a first connection from the first client to the server in response to a connection request sent by the first client;

[0106] A first communication module 904, configured to obtain server information of the failover server sent by the first client;

[0107] A second establishing module 906, configured to establish a second connection with the failover server according to the server information;

[0108] The second communication module 908 is used to send the client information of the first client to the failover server, so that the failover server establishes a third connection with the first client.

[0109] In some possible implementations, the device further includes a changing module 910, such as Fig.10 As shown, it is used for:

[0110] Changing the communication mode of the first connection to information transmission;

[0111] When the second connection is abnormal, sending a first connection change request to the first client, wherein the first connection change request is a request to change the communication mode of the first connection from information transmission to message transmission;

[0112] Send a target message to the first client.

[0113] In some possible implementations, the changing module is further used to:

[0114] The target message is sent to the first client through a combination module, where the combination module includes an active module, a passive module and a connection module.

[0115] In some possible implementations, the first establishing module of the device is further used to:

[0116] In response to the connection request sent by the second client, a fifth connection from the second client to the server is established.

[0117] In some possible implementations, the first client and the second client are in the same cluster.

[0118] The present application provides a device for implementing a communication connection method. The device includes a processor and a memory. The processor and the memory communicate with each other. The processor is used to execute instructions stored in the memory so that the device executes the above-mentioned communication connection method.

[0119] The present application provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a device, the device executes the above-mentioned communication connection method.

[0120] The present application provides a computer program product including instructions, which, when executed on a device, enables the device to execute the above-mentioned communication connection method.

[0121] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0122] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0123] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0124] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

[0125] It should be noted that the technical solutions described in the embodiments of the present invention can be combined arbitrarily without conflict.

[0126] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A communication connection method, characterized in that: The method is applied to the server side, and the method comprises: In response to a connection request sent by a first client, establishing a first connection from the first client to the server; Obtaining server information of the failover server sent by the first client; establishing a second connection with the failover server according to the server information; Sending the client information of the first client to the failover server so that the failover server establishes a third connection with the first client; Among them, the first connection is used to detect the status of the first client and the server, and after sending the server information of the failover server to the server, the communication mode of the first connection is changed to information transmission; the server to the first client transmits messages through the second connection and the third connection; wherein, the information transmission refers to the transmission of heartbeat check results, control and connection-related information, and the message transmission refers to the transmission of content data.

2. The method according to claim 1, characterized in that: The method further comprises: When the second connection is abnormal, sending a first connection change request to the first client, wherein the first connection change request is a request to change the communication mode of the first connection from information transmission to message transmission; Send a target message to the first client.

3. The method according to claim 2, characterized in that The sending a target message to the first client includes: The target message is sent to the first client through a combination module, wherein the combination module includes an active module, a passive module and a connection module; wherein the active module is used to send messages, and the passive module is used to receive messages.

4. The method according to claim 1, characterized in that: The method further comprises: In response to the connection request sent by the second client, a fifth connection from the second client to the server is established.

5. The method according to claim 4, characterized in that The first client and the second client are in the same cluster.

6. A communication connection method, characterized in that: The method is applied to a failover server, and the method comprises: Establishing, by the server side, a second connection between the failover server and the server side according to the server information of the failover server sent by the first client through the first connection; According to the client information of the first client sent by the server, a third connection between the failover server and the first client is established; wherein the first connection is used to detect the status of the first client and the server, and after sending the server information of the failover server to the server, the communication mode of the first connection is changed to information transmission; the server transmits messages to the first client through the second connection and the third connection; wherein the information transmission refers to the transmission of heartbeat check results, control and connection-related information, and the message transmission refers to the transmission of content data; When the third connection is abnormal, a fourth connection is established with the second client, wherein the third connection is a connection from the failover server to the first client.

7. A communication connection device, characterized in that: The device is deployed on the server side, and the device includes: A first establishing module, configured to establish a first connection from the first client to the server in response to a connection request sent by the first client; A first communication module, configured to obtain server information of a failover server sent by the first client; A second establishing module, configured to establish a second connection with the failover server according to the server information; A second communication module, configured to send the client information of the first client to the failover server, so that the failover server establishes a third connection with the first client; Among them, the first connection is used to detect the status of the first client and the server, and after sending the server information of the failover server to the server, the communication mode of the first connection is changed to information transmission; the server to the first client transmits messages through the second connection and the third connection; wherein, the information transmission refers to the transmission of heartbeat check results, control and connection-related information, and the message transmission refers to the transmission of content data.

8. A communication connection device, characterized in that: The communication connection device includes a processor and a memory; The processor is configured to execute instructions stored in the memory, so that the device performs the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The method comprises instructions for instructing a device to execute the method according to any one of claims 1 to 6.

10. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 6.