xtaran / amora-test3

Automatically exported from code.google.com/p/amora
0 stars 0 forks source link

Heart beat between cellphone <---> PC #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently amora server cannot identify if cellphone was turned off or even
if the amora client was killed.

The problem is that the server continues waiting for new commands, and
needs to be restarted.

The idea is to implement a heart beat between both devices, so that PC
server can know if cellphone was turned off and the same applies to cellphone.

Maybe we can have some threads here to help this:

client................server

............................. main thread
 s1 <--------------> s1
.............................

............................. extra thread

 s2 <--------------> s2
.............................

Legend
s1: commands socket
s2: heart beat socket

Original issue reported on code.google.com by cavalcan...@gmail.com on 18 Jul 2007 at 2:18

GoogleCodeExporter commented 9 years ago
Commit r205 detects when client is down, closing the connection and waiting for 
new
clients.

Amora server can detect client abrupt disconnection now, which is good. I'm not 
sure
if the heart beat is so important now.

Original comment by cavalcan...@gmail.com on 12 Sep 2007 at 1:24

GoogleCodeExporter commented 9 years ago
Since the server is able to detect client failures, I don't think that a heart 
beat
is a good idea.

I will close this issue now (and let it rest in peace in the realm of 
not-so-good-ideas).

Original comment by cavalcan...@gmail.com on 24 Jan 2008 at 2:28