samedi 1 novembre 2014

TCP: connectivity loss detection


Vote count:

0




Is there a way to get notified if TCP connection becomes broken? For example, I could be connected to a router and if I cut a cable somewhere down the line I won't get notification that TCP is down. Only when I try to send some data TCP send will fail eventually and I detect that connection is broken. In my case I connect to a server and I don't necessarily need to send data very often (e.g. it could be once in a few minutes), but if connection becomes broken remote server won't be able to send data to me and I'll have no clue if I'm disconnected.


So, are there any kind of TCP keepalive that might happens behind the scenes, e.g. something similar to the infamous heart-bleed, sorry heart-beat, in TLS that seems to be doing some sort of keepalive messages?


Note: In my case I'm actually connecting through a mobile hotspot and I set that mobile to a flight mode then all other devices that are connected through it don't see that TCP isn't connected anymore until they try to send anything over that connection.



asked 35 secs ago

Pavel

1,810






TCP: connectivity loss detection

Aucun commentaire:

Enregistrer un commentaire