[OSM-talk] Another message to tiles at home renderers

Dirk-Lüder Kreie osm-list at deelkar.net
Sun Dec 17 18:11:32 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi
Some of you may have noticed that uploads to the dev server often fail,
i.e. upload.pl just reports "Error uploading file".
This is mostly due to the added time needed on the server to import the
tiles into the database, so a drastically increased timeout is needed to
ensure upload.pl will not erroneously report an uploaded tileset as not
uploaded.

The constant re-trying of the uploads (that succeeded and upload.pl just
timed out too early) loads the database more than necessary and makes
the subsequent uploads even slower (because the import continues even if
the tile upload process is aborted, as long as the zip file got uploaded
and uncompressed correctly.

So if you are having this issue increase your timeout from 120 seconds
to something in the range of 900 seconds or even higher, especially if
you set your zipfile size to larger than the default.

Edit your upload.pl, line 122:
  my $ua = LWP::UserAgent->new(keep_alive => 1, timeout => 900);

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFhYhUFUbODdpRVDwRAm0VAKCi8CVLB6upe8XMisQy1Jqtf6etWACfYk6u
B2/EP3lw0A+a2LkIabosc0Y=
=eWAo
-----END PGP SIGNATURE-----




More information about the talk mailing list