[Tilesathome] Rate limiting on upload page
Robert (Jamie) Munro
rjmunro at arjam.net
Tue May 29 23:14:40 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Frederik Ramm wrote:
> I am still of the opinion that we should accept all uploads using a
> minimal script that only places them in a spool directory, then process
> them with a "nice"d daemon when resources are available. I am willing
> and able to write the required software for this (thought I'd wait
> though until the "admin" situation has cleared, as past code submissions
> had a tendency to be ignored).
>
> Only drawback would be that in order to re-use the existing upload
> handling code, the daemon would have to be in PHP which I personally
> consider unsuitable for anything that runs continuously, but I guess we
> can afford it (using commandline PHP of course, not through Apache) for
> the time being if we watch closely for memory leaks.
You could make the php just upload a tileset and then exit, and have the
daemon written in some other language that just does:
while true:
while (there are files):
exec("php upload.php")
sleep 30
or something like that.
It might be better to make the php do 10 tilesets at a time or something.
Robert (Jamie) Munro
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGXKXKz+aYVHdncI0RAqYwAKDL3YyZHkoWHGkkWl8yuOnA7j6SZwCgrXTi
uqK5Sbm07whdir4FazOr+Us=
=KoC4
-----END PGP SIGNATURE-----
More information about the Tilesathome
mailing list