CN107071046A - The processing method and system of a kind of network interruption - Google Patents
The processing method and system of a kind of network interruption Download PDFInfo
- Publication number
- CN107071046A CN107071046A CN201710325880.3A CN201710325880A CN107071046A CN 107071046 A CN107071046 A CN 107071046A CN 201710325880 A CN201710325880 A CN 201710325880A CN 107071046 A CN107071046 A CN 107071046A
- Authority
- CN
- China
- Prior art keywords
- connection
- client
- connecting object
- server
- monitor
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
Abstract
The invention discloses a kind of processing method of network interruption and system, method includes:S1, client create and start the first connecting object;S2, server create and start the second connecting object, are that client generates connection ID and is sent to client;The connection ID that S3, client the reception server are returned, sets up with server and is connected and communicates;All connecting objects in inactive state are closed and removed from the first connection monitoring list by S4, client timing, while all connecting objects in inactive state are closed and removed from the second connection monitoring list by server timing.The beneficial effects of the invention are as follows:The technical program passes through each connecting object of regular check, reconnection processing is carried out to the connecting object of inactive state in time, and space and the resource of client are distributed in release, are improved treatment effeciency and resource utilization, are solved because of the system problem produced by network interruption.
Description
Technical field
The present invention relates to data processing field, the processing method and system of more particularly to a kind of network interruption.
Background technology
With developing rapidly for Internet technology, increasing applications client is appeared in the life of people, user
By logging in these applications clients, from internet, acquisition is serviced., may be because of during client and server communication
A variety of causes and cause communication disruption, such as network interruption, still, client and server be directed to network interruption processor
Make and imperfection, it is impossible to solve the problems, such as inefficiency caused by space hold and resource occupation well.
The content of the invention
The invention provides a kind of processing method of network interruption and system, solving prior art can not solve well
The technical problem of inefficiency caused by space hold and resource occupation.
The technical scheme that the present invention solves above-mentioned technical problem is as follows:A kind of processing method of network interruption, including:
S1, client create and start the first connecting object, are sent and connected to server by first connecting object
Request;
S2, the server create and start the second connecting object, and receiving client by second connecting object sends out
The connection request sent is the client generation connection ID and is sent to the client;
S3, the client receive the connection ID that the server is returned, and are set up with the server and are connected and communicate, and
First connecting object is added in the first connection monitoring list, while the server adds second connecting object
Add in the second connection monitoring list;
Each connecting object in first connection monitoring list described in S4, the client regular check, judgement each connects
The active state of object is connect, all connecting objects in inactive state are closed and from the first connection monitoring list
Remove, while each connecting object in the second connection monitoring list described in the server regular check, judges each connection
The active state of object, all connecting objects in inactive state are closed and moved from the second connection monitoring list
Remove.
The beneficial effects of the invention are as follows:The technical program is by each connecting object of regular check, in time to inactive shape
The connecting object of state carries out reconnection processing, and space and the resource of client are distributed in release, improve treatment effeciency and
Resource utilization, is solved because of the system problem produced by network interruption.
On the basis of above-mentioned technical proposal, the present invention can also do following improvement.
Preferably, in addition to:
The client monitors connection and sets up event and connection closed event, when listen to the connection closed event and from
It is in when running status, login process again is carried out to the client, generates and issues connection disconnected event, when listens to
The connection closed event and itself be in non-operating state when, by the connection of current connecting object and client request transponder
Object is set to sky;
The client monitors connection failure event, when listening to the connection failure event, and startup reconnects mechanism, such as
Fruit is in preset time or default reconnect is not connected with successfully in number of times, then reconnects mechanism described in closing.
Preferably, in addition to:
The server monitors connection and sets up event and connection closed event, when listening to the connection closed event,
Current connecting object is removed from the second connection monitoring list, by corresponding first client of the current connecting object
The session object of ID removed from session object list, server event is generated according to the ID, interrupted described
Session object, the session context information of the ID is obtained according to the connection ID of first client, according to described the
The connection ID of one client, the session context information and interruption source generation Logout Events, nullify the session object simultaneously
Update the data storehouse.
Preferably, in step S4, each connection pair in the first connection monitoring list described in the client regular check
As judging the active state of each connecting object, all connecting objects in inactive state being closed and from described first
The method removed in connection monitoring list includes:
A1, the task of start by set date inspection connection, circulation obtain each connection pair in the first connection monitoring list
As;
A2, by each connecting object to the server send ping message, judge whether to receive response message, such as
It is to represent that the connecting object is active state, exits execution, it is inactive state otherwise to represent the connecting object, and this is connected
Object is removed from the first connection monitoring list;
A3, do not lost to be connected to the client if empty if the client connection failure monitor that the client includes
Lose monitor and send the first notification message, the connecting object is restarted by the client connection failure monitor, with institute
State server and re-establish connection;
A4, if client that the client includes connection monitor to connect monitor to the client if empty
Second notification message is sent, calls the method for closing of the client connection monitor to close the connecting object.
Preferably, in step S4, each connection pair in the second connection monitoring list described in the server regular check
As judging the active state of each connecting object, all connecting objects in inactive state being closed and from described second
The method removed in connection monitoring list includes:
B1, the task of start by set date inspection connection, circulation obtain each connection pair in the second connection monitoring list
As;
B2, by each connecting object to corresponding client send ping message, judge whether to receive response message,
It is active state then to represent the connecting object in this way, exits execution, and it is inactive state otherwise to represent the connecting object, and this is connected
Object is connect to remove from the second connection monitoring list;
B3, if the server server end connection monitor to connect monitor to the server end if empty
Send a notification message, call the method for closing of the server end connection monitor to close the connecting object.
A kind of processing system of network interruption, including:Client and server, the client includes:Client is connected
Processor and client connection monitoring device, the server include:Server end connects processor and server end connection monitoring
Device;
Client connection processor is used to create and start the first connecting object, by first connecting object to
Server sends connection request, receives the connection ID that the server is returned, is set up with the server and be connected and communicate, and will
First connecting object is added in the first connection monitoring list;
Each connecting object that the client connection monitoring device is used in the first connection monitoring list described in regular check,
Judge the active state of each connecting object, all connecting objects in inactive state are closed and connected from described first
Monitor in list and remove;
The server end connection processor is used to create and start the second connecting object, passes through second connecting object
The connection request that client is sent is received, is that the client generates connection ID and is sent to the client, with the client
End is set up connection and communicated, and second connecting object is added in the second connection monitoring list;
Each connection pair that the server end connection monitoring device is used in the second connection monitoring list described in regular check
As judging the active state of each connecting object, all connecting objects in inactive state being closed and from described second
Removed in connection monitoring list.
Preferably, the client also includes:Client connects monitor and client connection failure monitor,
Client connection monitor, which is used to monitoring connection, sets up event and connection closed event, when listening to the company
When connecing close event and itself being in running status, login process again is carried out to the client, generates and issues connection and break
Event is opened, when listening to the connection closed event and itself is in non-operating state, by current connecting object and client
The connecting object of request transponder is set to sky;
The client connection failure monitor is used to monitor connection failure event, when listening to the connection failure event
When, startup reconnects mechanism, if in preset time or default reconnect be not connected with successfully in number of times, machine is reconnected described in closing
System.
Preferably, the server also includes:Server end connects monitor, and the server end connection monitor is used for
Monitor connection and set up event and connection closed event, when listening to the connection closed event, by current connecting object from institute
State in the second connection monitoring list and remove, by the session object of the ID of corresponding first client of the current connecting object
Removed from session object list, server event is generated according to the ID, interrupt the session object, according to described the
The connection ID of one client obtains the session context information of the ID, according to the connection ID of first client, institute
Session context information and interruption source generation Logout Events are stated, the session object is nullified and updates the data storehouse.
Preferably, the client connection monitoring implement body is used for the task that start by set date inspection is connected, and circulation obtains institute
Each connecting object in the first connection monitoring list is stated, ping message is sent to the server by each connecting object,
Judge whether to receive response message, it is active state that the connecting object is then represented in this way, exits execution, otherwise represents the connection
Object is inactive state, and the connecting object is removed from the first connection monitoring list, if the client is connected
Failure monitor does not then send the first notification message to be empty to the client connection failure monitor, is connected by the client
Connect unsuccessfully monitor and restart the connecting object, re-establish and be connected with the server;If the client connection prison
Listen device and then do not send second notification message to client connection monitor to be empty, call the client connection monitor
Method for closing closes the connecting object.
Preferably, the server end connection monitoring implement body is used for the task that start by set date inspection is connected, and circulation is obtained
Each connecting object in the second connection monitoring list, sends ping to corresponding client by each connecting object and disappears
Breath, judges whether to receive response message, and it is active state that the connecting object is then represented in this way, exits execution, and otherwise representing should
Connecting object is inactive state, the connecting object is removed from the second connection monitoring list, if the server
Connection monitor in end does not send a notification message then to be empty to server end connection monitor, calls the server end to connect
The method for closing of monitor closes the connecting object.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of the processing method of network interruption provided in an embodiment of the present invention;
A kind of schematic flow sheet of the processing method for network interruption that Fig. 2 provides for another embodiment of the present invention;
A kind of schematic flow sheet of the processing method for network interruption that Fig. 3 provides for another embodiment of the present invention;
A kind of structural representation of the processing system for network interruption that Fig. 4 provides for another embodiment of the present invention;
A kind of structural representation of the processing system for network interruption that Fig. 5 provides for another embodiment of the present invention.
Embodiment
The principle and feature of the present invention are described below in conjunction with accompanying drawing, the given examples are served only to explain the present invention, and
It is non-to be used to limit the scope of the present invention.
As shown in figure 1, a kind of processing method of network interruption, including:
S1, client are created and start the first connecting object, and connection request is sent to server by the first connecting object;
S2, server are created and start the second connecting object, and the connection that client is sent is received by the second connecting object
Request is client generation connection ID and is sent to client;
S3, client the reception server return connection ID, with server set up be connected and communicates, and by first connect pair
As being added in the first connection monitoring list, while the second connecting object is added in the second connection monitoring list by server;
Each connecting object in S4, client regular check the first connection monitoring list, judges each connecting object
Active state, all connecting objects in inactive state are closed and removed from the first connection monitoring list, are taken simultaneously
The each connecting object being engaged in device regular check the second connection monitoring list, judges the active state of each connecting object, will locate
Close and removed from the second connection monitoring list in all connecting objects of inactive state.
It should be understood that by each connecting object of regular check, being reconnected in time to the connecting object of inactive state
Space and the resource of client are distributed in processing, and release, are improved treatment effeciency and resource utilization, are solved because of network
System problem produced by interrupting.
Specifically, this method also includes:
Client monitors connection and sets up event and connection closed event, is transported when listening to connection closed event and itself being in
During row state, login process again is carried out to client, generates and issues connection disconnected event, when listening to connection closed event
And when itself being in non-operating state, the connecting object of current connecting object and client request transponder is set to sky;
Client monitors connection failure event, when listening to connection failure event, and startup reconnects mechanism, if default
Time is interior or default reconnect is not connected with successfully in number of times, then closes and reconnect mechanism.
It should be understood that when client listens to connection closed event, and itself does not bring into operation, then illustrates client
And be not logged in, the connecting object of current connecting object and client request transponder is directly set to sky.If client
End listens to connection failure event and then illustrates now occur disconnecting, it is necessary to be reconnected, and is directly closed if failure is reconnected
The mechanism of reconnecting is closed, finally, is deleted failure or inactive state connecting object by client connection monitoring device, cleaning caching
And database.
Specifically, this method also includes:
Server monitors connection and sets up event and connection closed event, when listening to connection closed event, will currently connect
Connect object to remove from the second connection monitoring list, by the session pair of the ID of corresponding first client of current connecting object
As being removed from session object list, server event is generated according to ID, session object is interrupted, according to the first client
Connection ID obtains the session context information of ID, according to the connection ID, session context information and interruption of the first client
Reason generates Logout Events, nullifies session object and updates the data storehouse.
Specifically, as shown in Fig. 2 in step S4, each connection in client regular check the first connection monitoring list
Object, judges the active state of each connecting object, and all connecting objects in inactive state are closed and connected from first
Connecing the method removed in monitoring list includes:
A1, the task of start by set date inspection connection, circulation obtain each connecting object in the first connection monitoring list;
A2, by each connecting object to server send ping message, judge whether to receive response message, in this way then
It is active state to represent the connecting object, exits execution, and it is inactive state otherwise to represent the connecting object, by the connecting object
Removed from the first connection monitoring list;
A3, if the client connection failure monitor that client includes for if empty to client connection failure monitor
The first notification message is sent, the connecting object is restarted by client connection failure monitor, re-established with server
Connection;
A4, if client that client includes connection monitor to send second to client connection monitor if empty
Notification message, the method for closing for calling client to connect monitor closes the connecting object.
Specifically, as shown in figure 3, in step S4, each connection in server regular check the second connection monitoring list
Object, judges the active state of each connecting object, and all connecting objects in inactive state are closed and connected from second
Connecing the method removed in monitoring list includes:
B1, the task of start by set date inspection connection, circulation obtain each connecting object in the second connection monitoring list;
B2, by each connecting object to corresponding client send ping message, judge whether to receive response message,
It is active state then to represent the connecting object in this way, exits execution, and it is inactive state otherwise to represent the connecting object, and this is connected
Object is connect to remove from the second connection monitoring list;
B3, do not notified to be sent to server end connection monitor if empty if the server end connection monitor of server
Message, the method for closing of invoking server end connection monitor closes the connecting object.
As shown in figure 4, a kind of processing system of network interruption, including:Client 1 and server 2, client 1 include:Visitor
Family end connects processor 11 and client connection monitoring device 12, and server 2 includes:Server end connects processor 21 and server
Hold connection monitoring device 22;
Client connection processor 11 is used to create and start the first connecting object, by the first connecting object to server
2 send connection requests, the reception server 2 return connection ID, with server 2 set up be connected and communicates, and by first connect pair
As being added in the first connection monitoring list;
Each connecting object that client connection monitoring device 12 is used in regular check the first connection monitoring list, judges every
The active state of individual connecting object, all connecting objects in inactive state is closed and from the first connection monitoring list
Remove;
Server end connection processor 21 is used to create and start the second connecting object, and visitor is received by the second connecting object
The connection request that family end 1 is sent is the generation connection ID of client 1 and is sent to client 1, sets up and is connected and logical with client 1
Letter, the second connecting object is added in the second connection monitoring list;
Each connecting object that server end connection monitoring device 22 is used in regular check the second connection monitoring list, judges
The active state of each connecting object, all connecting objects in inactive state is closed and from the second connection monitoring list
It is middle to remove.
Specifically, as shown in figure 5, client 1 also includes:Client connects monitor 13 and client connection failure is monitored
Device 14,
Client connection monitor 13 is used to monitor connection and set up event and connection closed event, when listening to connection closed
Event and itself be in running status when, login process again is carried out to client 1, generates and issues connection disconnected event, when
When listening to connection closed event and itself being in non-operating state, by the company of current connecting object and client request transponder
Connect object and be set to sky;
Client connection failure monitor 14 is used to monitor connection failure event, when listening to connection failure event, opens
It is dynamic to reconnect mechanism, if in preset time or default reconnect be not connected with successfully, closing and reconnecting mechanism in number of times.
Specifically, as shown in figure 5, server 2 also includes:Server end connects monitor 23, and server end connection is monitored
Device 23 sets up event and connection closed event for monitoring connection, when listening to connection closed event, by current connecting object
Removed from the second connection monitoring list, by the session object of the ID of corresponding first client of current connecting object from meeting
Talk about in list object and remove, server event is generated according to ID, session object is interrupted, according to the connection ID of the first client
The session context information of ID is obtained, is given birth to according to the connection ID, session context information and interruption source of the first client
Into Logout Events, nullify session object and update the data storehouse.
Specifically, the task that client connection monitoring device 12 is connected specifically for start by set date inspection, circulation obtains first
Each connecting object in connection monitoring list, sends ping message to server 2 by each connecting object, judges whether to connect
Response message is received, it is active state that the connecting object is then represented in this way, exits execution, it is non-live otherwise to represent the connecting object
Dynamic state, the connecting object is removed from the first connection monitoring list, if client connection failure monitor 14 is not sky
The first notification message then is sent to client connection failure monitor 14, is restarted by client connection failure monitor 14
The connecting object, re-establishes with server 2 and is connected;Connect and supervise to client if client connection monitor 13 is not for sky
Device 13 is listened to send second notification message, the method for closing for calling client to connect monitor 13 closes the connecting object.
If it should be understood that client connection failure monitor 14 and client connection monitor 13 are not sky, needed
Sent a notification message respectively to both.
Specifically, the task that server end connection monitoring device 22 is connected specifically for start by set date inspection, circulation obtains the
Each connecting object in two connection monitoring lists, sends ping message to corresponding client 1 by each connecting object, sentences
Disconnected whether to receive response message, it is active state that the connecting object is then represented in this way, exits execution, otherwise represents the connection pair
As for inactive state, the connecting object is removed from the second connection monitoring list, if server end connects monitor 23
Do not sent a notification message to be empty to server end connection monitor 23 then, invoking server end connects the method for closing of monitor 23
Close the connecting object.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.
Claims (10)
1. a kind of processing method of network interruption, it is characterised in that including:
S1, client are created and start the first connecting object, and connection request is sent to server by first connecting object;
S2, the server create and start the second connecting object, receive what client was sent by second connecting object
Connection request is the client generation connection ID and is sent to the client;
S3, the client receive the connection ID that the server is returned, and are set up with the server and are connected and communicate, and by institute
State the first connecting object to be added in the first connection monitoring list, while second connecting object is added to by the server
In second connection monitoring list;
Each connecting object in first connection monitoring list described in S4, the client regular check, judges each connection pair
The active state of elephant, all connecting objects in inactive state are closed and moved from the first connection monitoring list
Remove, while each connecting object in the second connection monitoring list described in the server regular check, judges each connection pair
The active state of elephant, all connecting objects in inactive state are closed and moved from the second connection monitoring list
Remove.
2. the processing method of a kind of network interruption according to claim 1, it is characterised in that also include:
The client monitors connection and sets up event and connection closed event, when listening to the connection closed event and be in certainly
When running status, login process again is carried out to the client, generates and issues connection disconnected event, it is described when listening to
Connection closed event and itself be in non-operating state when, by current connecting object and the connecting object of client request transponder
It is set to sky;
The client monitors connection failure event, when listening to the connection failure event, and startup reconnects mechanism, if
Preset time is interior or default reconnect is not connected with successfully in number of times, then reconnects mechanism described in closing.
3. the processing method of a kind of network interruption according to claim 2, it is characterised in that also include:
The server monitors connection and sets up event and connection closed event, ought when listening to the connection closed event
Preceding connecting object is removed from the second connection monitoring list, by the use of corresponding first client of the current connecting object
Family ID session object is removed from session object list, and server event is generated according to the ID, interrupts the session
Object, the session context information of the ID is obtained according to the connection ID of first client, according to the described first visitor
The connection ID at family end, the session context information and interruption source generation Logout Events, nullify the session object and update
Database.
4. the processing method of a kind of network interruption according to claim 3, it is characterised in that in step S4, the client
Each connecting object in the first connection monitoring list described in regular check is held, the active state of each connecting object is judged, will
The method that all connecting objects in inactive state are closed and removed from the first connection monitoring list includes:
A1, the task of start by set date inspection connection, circulation obtain each connecting object in the first connection monitoring list;
A2, by each connecting object to the server send ping message, judge whether to receive response message, in this way then
It is active state to represent the connecting object, exits execution, and it is inactive state otherwise to represent the connecting object, by the connecting object
Removed from the first connection monitoring list;
A3, if the client connection failure monitor that the client includes to be supervised to the client connection failure if empty
Listen device to send the first notification message, the connecting object is restarted by the client connection failure monitor, with the clothes
Business device re-establishes connection;
A4, if client that the client includes connection monitor to be sent to client connection monitor if empty
Second notification message, calls the method for closing of the client connection monitor to close the connecting object.
5. the processing method of a kind of network interruption according to claim 3 or 4, it is characterised in that in step S4, the clothes
The each connecting object being engaged in the second connection monitoring list described in device regular check, judges the active state of each connecting object,
The method that all connecting objects in inactive state are closed and removed from the second connection monitoring list includes:
B1, the task of start by set date inspection connection, circulation obtain each connecting object in the second connection monitoring list;
B2, by each connecting object to corresponding client send ping message, judge whether to receive response message, in this way
It is active state then to represent the connecting object, exits execution, and it is inactive state otherwise to represent the connecting object, by the connection pair
As being removed from the second connection monitoring list;
B3, if the server server end connection monitor to be sent to server end connection monitor if empty
Notification message, calls the method for closing of the server end connection monitor to close the connecting object.
6. a kind of processing system of network interruption, it is characterised in that including:Client (1) and server (2), the client
(1) include:Client connection processor (11) and client connection monitoring device (12), the server (2) include:Server end
Connect processor (21) and server end connection monitoring device (22);
Client connection processor (11) is used to create and start the first connecting object, by first connecting object to
Server sends connection request, receives the connection ID that the server is returned, is set up with the server and be connected and communicate, and will
First connecting object is added in the first connection monitoring list;
Each connecting object that the client connection monitoring device (12) is used in the first connection monitoring list described in regular check,
Judge the active state of each connecting object, all connecting objects in inactive state are closed and connected from described first
Monitor in list and remove;
The server end connection processor (21) is used to create and start the second connecting object, passes through second connecting object
The connection request that client is sent is received, is that the client generates connection ID and is sent to the client, with the client
End is set up connection and communicated, and second connecting object is added in the second connection monitoring list;
Each connection pair that the server end connection monitoring device (22) is used in the second connection monitoring list described in regular check
As judging the active state of each connecting object, all connecting objects in inactive state being closed and from described second
Removed in connection monitoring list.
7. the processing system of a kind of network interruption according to claim 6, it is characterised in that the client (1) is also wrapped
Include:Client connection monitor (13) and client connection failure monitor (14),
Client connection monitor (13), which is used to monitoring connection, sets up event and connection closed event, when listening to the company
When connecing close event and itself being in running status, login process again is carried out to the client, generates and issues connection and break
Event is opened, when listening to the connection closed event and itself is in non-operating state, by current connecting object and client
The connecting object of request transponder is set to sky;
The client connection failure monitor (14) is used to monitor connection failure event, when listening to the connection failure event
When, startup reconnects mechanism, if in preset time or default reconnect be not connected with successfully in number of times, machine is reconnected described in closing
System.
8. the processing system of a kind of network interruption according to claim 7, it is characterised in that the server (2) is also wrapped
Include:Server end connection monitor (23), the server end connection monitor (23) sets up event and company for monitoring connection
Close event is connect, when listening to the connection closed event, by current connecting object from the second connection monitoring list
Remove, the session object of the ID of corresponding first client of the current connecting object is moved from session object list
Remove, server event is generated according to the ID, interrupt the session object, obtained according to the connection ID of first client
Take the session context information of the ID, according to the connection ID of first client, the session context information and
Interruption source generates Logout Events, nullifies the session object and updates the data storehouse.
9. a kind of processing system of network interruption according to claim 8, it is characterised in that the client connection monitoring
The task that device (12) is connected specifically for start by set date inspection, circulation obtains each connection in the first connection monitoring list
Object, sends ping message to the server (2) by each connecting object, judges whether to receive response message, in this way
It is active state then to represent the connecting object, exits execution, and it is inactive state otherwise to represent the connecting object, by the connection pair
As being removed from the first connection monitoring list, to described if the client connection failure monitor (14) is not for sky
Client connection failure monitor (14) sends the first notification message, by the client connection failure monitor (14) again
Start the connecting object, re-establish and be connected with the server (2);If the client connection monitor (13) is not sky
Then monitor (13) is connected to the client and send second notification message, call the pass of the client connection monitor (13)
The method of closing closes the connecting object.
10. the processing system of a kind of network interruption according to claim 8 or claim 9, it is characterised in that the server end connects
The task that monitor (22) is connected specifically for start by set date inspection is connect, circulation obtains every in the second connection monitoring list
Individual connecting object, sends ping message to corresponding client (1) by each connecting object, judges whether that receiving response disappears
Breath, it is active state that the connecting object is then represented in this way, exits execution, and it is inactive state otherwise to represent the connecting object, will
The connecting object is removed from the second connection monitoring list, if server end connection monitor (23) is not for sky
Sent a notification message to server end connection monitor (23), call the closing of the server end connection monitor (23)
Method closes the connecting object.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710325880.3A CN107071046A (en) | 2017-05-10 | 2017-05-10 | The processing method and system of a kind of network interruption |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710325880.3A CN107071046A (en) | 2017-05-10 | 2017-05-10 | The processing method and system of a kind of network interruption |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107071046A true CN107071046A (en) | 2017-08-18 |
Family
ID=59596689
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710325880.3A Pending CN107071046A (en) | 2017-05-10 | 2017-05-10 | The processing method and system of a kind of network interruption |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107071046A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109194901A (en) * | 2018-09-14 | 2019-01-11 | 视联动力信息技术股份有限公司 | A kind of method for processing video frequency and device based on view networking |
CN113301097A (en) * | 2020-12-30 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Data transmission method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090113050A1 (en) * | 2001-02-12 | 2009-04-30 | Iwao Hatanaka | Method and system for automated session resource clean-up in a distributed client-server environment |
CN102025474A (en) * | 2010-12-30 | 2011-04-20 | 北京佳讯飞鸿电气股份有限公司 | Network data transmission method |
CN102316116A (en) * | 2011-09-29 | 2012-01-11 | 广东高新兴通信股份有限公司 | System for supporting multiple platform network communication processing and method thereof |
CN102857406A (en) * | 2012-07-23 | 2013-01-02 | 大唐移动通信设备有限公司 | Message processing method and device for JBM (Java message service) system |
CN104683139A (en) * | 2013-12-02 | 2015-06-03 | 成都鼎桥通信技术有限公司 | Remote operation and maintenance method of communication equipment |
CN104753957A (en) * | 2015-04-16 | 2015-07-01 | 国家电网公司 | Mass communication terminal connection management method of electricity information acquisition system |
CN105635248A (en) * | 2015-12-18 | 2016-06-01 | Tcl集团股份有限公司 | Method and system for releasing TCP (Transmission Control Protocol) connection resources |
-
2017
- 2017-05-10 CN CN201710325880.3A patent/CN107071046A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090113050A1 (en) * | 2001-02-12 | 2009-04-30 | Iwao Hatanaka | Method and system for automated session resource clean-up in a distributed client-server environment |
CN102025474A (en) * | 2010-12-30 | 2011-04-20 | 北京佳讯飞鸿电气股份有限公司 | Network data transmission method |
CN102316116A (en) * | 2011-09-29 | 2012-01-11 | 广东高新兴通信股份有限公司 | System for supporting multiple platform network communication processing and method thereof |
CN102857406A (en) * | 2012-07-23 | 2013-01-02 | 大唐移动通信设备有限公司 | Message processing method and device for JBM (Java message service) system |
CN104683139A (en) * | 2013-12-02 | 2015-06-03 | 成都鼎桥通信技术有限公司 | Remote operation and maintenance method of communication equipment |
CN104753957A (en) * | 2015-04-16 | 2015-07-01 | 国家电网公司 | Mass communication terminal connection management method of electricity information acquisition system |
CN105635248A (en) * | 2015-12-18 | 2016-06-01 | Tcl集团股份有限公司 | Method and system for releasing TCP (Transmission Control Protocol) connection resources |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109194901A (en) * | 2018-09-14 | 2019-01-11 | 视联动力信息技术股份有限公司 | A kind of method for processing video frequency and device based on view networking |
CN113301097A (en) * | 2020-12-30 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Data transmission method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110417915B (en) | Push message transmission method and device, storage medium and electronic equipment | |
US8582750B2 (en) | Connection recovery in a call center | |
US8244887B2 (en) | HTTP push to simulate server-initiated sessions | |
CN101605108B (en) | Method, system and apparatus for instant communication | |
US9591083B1 (en) | Method and apparatus providing connection recovery for a chat client | |
EP2485443A1 (en) | System and method for managing multiple queues of non-persistent messages in a networked environment | |
US20140207916A1 (en) | Method, apparatus, and system for pushing notification | |
WO2017166713A1 (en) | Service request processing method and device | |
CN106936896B (en) | The data transferring method and device of Kafka cluster | |
WO2021237433A1 (en) | Message pushing method and apparatus, and electronic device and computer-readable medium | |
CN105429799B (en) | Server backup method and device | |
CN102035864B (en) | Method and system for realizing open services | |
CN106993043B (en) | Data communication system and method based on agency | |
CN106686056A (en) | Android client communication device and method allowing Android client communication device to connect and communicate with server | |
CN104038390B (en) | A kind of linux server clusters based on netlink unify peripheral hardware action listener method | |
CN107071046A (en) | The processing method and system of a kind of network interruption | |
CN103299584B (en) | For temporary lose connection after optimize the method for network performance | |
CN112187903A (en) | Message pushing method and device and message service system | |
CN103001822B (en) | The processing method of Network Abnormal and device | |
CN103312586B (en) | A kind of method of instant messaging, system and server | |
EP2944073A2 (en) | Method and system for the handling of redundant long poll | |
CN100359865C (en) | Detecting method | |
CN109286525A (en) | It is a kind of based on MQTT communication and it is active and standby between heartbeat two unit standby method | |
CN111741175B (en) | Call center system, signal transmission method, device, server and medium | |
CN112506682A (en) | Method, device and computer readable storage medium for relieving abnormity of business server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170818 |