Ysurac / FlightAirMap

Open source project displaying live aircrafts, ships or trackers on 2D/3D map. Browse through the data based on a particular aircraft, airline, airport, tracker or vessel to search through the database or see extensive statistics. Can use ADS-B in SBS1 format (dump1090, Radarcape,...), VRS, VA (VATSIM, IVAO whazzup.txt, phpvms,...), ACARS (acarsdec, acarsdeco2), APRS, AIS as datasource.
https://www.flightairmap.com/
GNU Affero General Public License v3.0
516 stars 156 forks source link

daemon-spotter not automatically reconnecting after ip change dynamic host #242

Open gugaua opened 7 years ago

gugaua commented 7 years ago

Is it possible for daemon-spotter to auto connect on dynamic ip host after connection lost?

Ysurac commented 7 years ago

I don't really understand the problem. Your source is on a dynamic ip, I think with a domain like dyn, and daemon-spotter always use the previous IP ?

gugaua commented 7 years ago

Yes, and it will use 100% CPU.

Ysurac commented 7 years ago

You are slow to answer...It use 100% CPU because the script try a lot of times, I will fix that. For the dynamic ip, I think it use the DNS cache. What is your OS ?

gugaua commented 7 years ago

I had a lag :)

my server OS is debian 8

Ysurac commented 7 years ago

I can't really do anything, It seems that there is a cache when I resolve a hostname in PHP. At least now it exit after some attempts. You can make a script that check if daemon-spotter.php is running, and run it again if not. Or you can use a static IPv6 like http://www.he.net