Closed coolparadox closed 7 years ago
I suggest 5-second timeout to start with.
I intend to implement a timeout parameter in NewHandler() with millisecond granularity, defaulting to 5 seconds if user passes a null value.
This parameter will be used in all external queries -- ipinfo and cymru. (Libgeoip is a local access, so as I see no timeout protection is required.)
+1
Blocking calls that access external services (currently ipinfo.io) must have a timeout so callers are not indefinitely locked.
This issue is a request for having timeouts implemented when the library reaches external services.