diff options
| author | Olivier Dony <odo@openerp.com> | 2017-01-19 01:22:57 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2017-01-31 19:21:56 +0100 |
| commit | 76c36079a5a000de8112195aa777ae1f88178908 (patch) | |
| tree | 13458011fc0d2954716a1bc7e74cf798ac755329 /doc/reference/javascript.rst | |
| parent | aca34baba8041461bfc63ad8521f91c39f122c64 (diff) | |
[FIX] website: make GeoIP resolver shared
The GeoIP resolver keeps a permanent open file descriptor on the
GeoIP database file, for example /usr/share/GeoIP/GeoIPCity.dat
Because we initialize a resolver for each registry, servers with
many databases may easily blow up the open file descriptor limit
of multi-threaded workers (gevent or no workers multithread mode).
The Maxmind GeoIP API appears to be thread-safe since v1.1.4, so
it is much less wasteful to use a shared resolver for each process.
This patch keeps the _geoip_resolver class attribute on `ir.http`
for compatibility, but it will be removed for the next version.
Diffstat (limited to 'doc/reference/javascript.rst')
0 files changed, 0 insertions, 0 deletions
