These are chat archives for unisonweb/unison

10th
Mar 2017
Paul Chiusano
@pchiusano
Mar 10 2017 14:12
transit time could be measured just by measuring time between a keepalive being received and it being sent to next node
as in, just the wall clock time on the node that gets the keepalive
it can record “I got this keepalive 20ms ago, and just got ack that next node is listening for the keepalive I’m about to send” (meaning it has started its timer)
i guess that involves a round trip though
Arya Irani
@aryairani
Mar 10 2017 17:05
what’s the ack; a response to the previous keepalive?
Paul Chiusano
@pchiusano
Mar 10 2017 17:23
@refried no - it’s:
“Bob has just sent me a message telling me he’d like to send me a keepalive. Send him acknowledgement. Start timer. Read the keepalive from the network. Timer is still running. Figure out that need to send Arya a propagated keepalive. Send arya a message saying I’d like to send him a keepalive. Arya replies with acknowledgement. Stop timer and add elapsed time to the keepalive sent to Arya."
Paul Chiusano
@pchiusano
Mar 10 2017 17:29
Better approach might be to send the keepalive, then send a follow up message saying how long the transfer took
transfer time gets added to propagated keep alive, if it reaches in time. And if not, the time was so fast anyway that it likely doesn’t matter
Arya Irani
@aryairani
Mar 10 2017 22:07
The message that says you’d like to send a keepalive is different from a keepalive?
and, are keepalives acknowledged?
Paul Chiusano
@pchiusano
Mar 10 2017 22:09
Yeah. I think I like the second idea better tho
Arya Irani
@aryairani
Mar 10 2017 22:11
Ok, sure.