planetfederal / geodroid-server

Apache License 2.0
3 stars 4 forks source link

remove service polling from GeodroidServer #35

Closed ischneider closed 10 years ago

ischneider commented 10 years ago

Currently GeodroidServer pings the server every 4 seconds to detect if it's running or not.

Instead of polling the service endpoint, another approach would be to have the nano server use a callback to notify when it's socket server is running. A second callback for detecting shutdown could be called when the ServerSocket thread loop exits.

jdeolive commented 10 years ago

+1

ischneider commented 10 years ago

Not that there's any opposition to this, but just verified 3m12s of CPU time (2% battery) from the past 24 hours of almost all idleness. (Since I was curious)

ischneider commented 10 years ago

Fixed with e859014f