Skalar / google_distance_matrix

Ruby client for The Google Distance Matrix API.
MIT License
58 stars 45 forks source link

Support a timeout for HTTP calls #39

Closed pedro closed 6 years ago

pedro commented 6 years ago

By default Net::HTTP sets open and read timeouts to 60s, which can be dangerous if you're experiencing network issues and your server hangs (happened to me recently 😬 still not sure if the timeout was due to network or Google themselves).

Taking an optional timeout in the distance matrix configuration here.

thhermansen commented 6 years ago

Hmm .. How have I not noticed this one? Anyway. Closing this due to:

Please reopen if you feel like working on this pull request :)