fw42 / honeymap

Real-time websocket stream of GPS events on a fancy SVG world map
http://map.honeynet.org/
GNU Lesser General Public License v3.0
218 stars 88 forks source link

Fix undefined reconnect delay in client #14

Closed katkad closed 11 years ago

katkad commented 11 years ago

"Connection to back-end lost :-( Retrying in undefineds..."

fw42 commented 11 years ago

This will reset the delay to 1 on every single try, i.e., it will never increase.

fw42 commented 11 years ago

You can set it in the constructor so it will only be defined once at the beginning, that should work.

fw42 commented 11 years ago

Also, your clock is 4 hours in the future...

 commit af4f02cf7ab794e82627243fd6a63e9360f33b57
 Author: katkad <katarina.durechova@nic.cz>
 Date:   Mon Sep 16 12:52:03 2013 -0400
>> Time.now
=> 2013-09-16 09:08:16 -0400
katkad commented 11 years ago

right. got wrong timezone. thanks

yeah, it is better in constructor

katkad commented 11 years ago

updated

fw42 commented 11 years ago

Thanks!