• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 173
  • Last Modified:

How can the server side detect when the client connection is abnormity broken?

How can the server side detect when the client connection is abnormity broken?
When client's network droped out, How can the server side detect?
I am try it at evet of onsocketerror, but failed, help me please.I am hurry!
thanks!
0
hujunyi
Asked:
hujunyi
  • 2
2 Solutions
 
Ivanov_GCommented:

   put something when the client disconnect normally. For example when client disconnect, he send <SESSION_END> string.

   when client is dropped without this string received - this is possible network error / client restart/shutdown...
0
 
HypoviaxCommented:
What about the OnClientDisconnect event? When a client disconnects this procedure will be run

regards, Hypoviax
0
 
HypoviaxCommented:
Both Ivanov_G and myself have provided the procedure to which an event will run when a clent fails i.e disconnects. I therefore think a split of points is appropriate

Hypoviax
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now