hi there,

I use the GeoPHP (and Google Geocoder) to fill a Geofield from an Adressfield ... nothing special. And it works well on my DEV server (take only 1 or 2 seconds to fill the geofield correctly and save the node).

But it's getting slow when i do the same operation on my Production server (VPS) ... i mean very very slow (around 60 seconds to save to geocode and then save the node). It works at the end but why that difference ?
I guess, as the site configuration is the same, it's about the configuration of my production server ? But i really dont know where to look for as i'm not a developer.

Do you have any clues ?

This is a duplicate from http://drupal.org/node/1971202 as i don't know if it's relative to Geocoder or GeoPHP.

Thx !

Comments

rares’s picture

I had a similar issue and the problem was caused by the ipv6 interface being enabled on the server, but not passing traffic. So all the requests to the API were taking 30 seconds until the ipv6 timed out and the connection was being retried over ipv4.
You can diagnose ipv6 with a simple ping to google API: ping6 2607:f8b0:4003:c02::5f. If you get network unreachable, it means ipv6 is not enabled (and you're good), but if you get no response, then you should fix ipv6 connectivity to solve this issue.

neslee canil pinto’s picture

Issue summary: View changes
Status: Active » Closed (outdated)