[mod_tile] Fix double free bug in tile config loading

Reported by 7bitbyte, diagnosed by fabianpr on help.osm.org



git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29190 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[mod_tile] log and graph time to retrieve tiles from disk

Adds a munin graph to monitor the average time it takes to retrieve a served tile
from disk. This can be useful to check if the underlying disk system is fast enough
to handle the load of serving tiles. It does not include time required for pontential
rendering on the fly, nor the time to deliver the tile over the network.



git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29195 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[mod_tile] report atime in /status as well.

Add a warning to the status page that neither create time nor access time might be accurate.

Create time is manipulated by the tile expiry process, and atime is often disabled on the filesytem via noatime
for performance reasons.



git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29196 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[render_expired] Set back date by exactly 20 years for touch
 based expiry

With a set back of 20 years rather than to a specific date,
the actual render time gets preserved and can be checked in
e.g. mod_tiles tile status



git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29197 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
Correctly print the version string of mapnik in renderd



git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29249 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
Renderd seg faulted if the database connection was reset



git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29256 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
fix tile path

git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29268 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
typo

git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29279 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[renderd] Make renderd's TCP socket IPv6 compliant



git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29283 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[mod_tile] Enable mod_tile to connect to renderd via TCP socket

So far mod_tile could only connect to renderd via a unix domain socket.

Renderd was already able to accept tile rendering requests on tcp sockets
to enable it to be distributed accross multiple servers. With adding this
feature to mod_tile, it is now possible to have renderd on a different server
than mod_tile.

If multiple IPs are registered to the renderd dns entry, it supports a simple
form of automatic fail over, although a more sophisticated solution is likely
necessary for proper high availability setups.



git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29284 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
adapt to mapnik >= 2.2.0 which does not provide a default ctor for mapnik::projection

git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29289 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
fix compile with clang

git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29290 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
no need to check for mapnik dependencies, just check for mapnik

git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29291 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
Revert previous commit as it broke builds under some conditions.

The following errors appeared on Ubuntu builds:

cc1: warning: command line option '-ftemplate-depth=300' is valid for C++/ObjC++ but not for C [enabled by default]
In file included from store.h:9:0,
                 from store.c:21:
render_config.h:6:1: error: expected identifier or '(' before '/' token
render_config.h:15:1: error: stray '#' in program
...

As I don't know why this broke, or how to fix it, I am reverting this patch for now. It also only triggeres after a make distclean 

 


git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29305 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
Fix issues found by coverity static analysis in daemon.c



git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29306 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
fix issues found by coverity static analysis in mod_tile.c



git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29307 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
fix issues found by coverity static analysis in render_old.c



git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29308 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
fix issues found by coverity static analysis in render_expired.c



git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29309 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
fix issues found by coverity static analysis in gen_tile.cpp



git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29310 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
fix issues found by coverity static analysis in dir_utils.c



git-svn-id: http://svn.openstreetmap.org/applications/utils/mod_tile@29311 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4