[Tilesathome] sleep() after successful upload
spaetz
osm at sspaeth.de
Thu Jul 17 10:59:00 BST 2008
On Thu, Jul 17, 2008 at 01:25:28AM +0200, Dirk-L?der Kreie wrote:
> spaetz schrieb:
>> On Tue, Jul 15, 2008 at 01:29:45PM +0200, Henry Loenwind wrote:
>>> is the sleep() after a successful upload really needed (anymore)?
Actually, the sleep seemed to be intented only in case of failures. I had a look at the code and it reduced the sleep delay by 25% for each successfull upload, but then it universally added 1 second to the delay on each run, even successfull ones. So we got stuck with a 4 second delay. I modified the code to not increase the sleep delay in case of success which got rid of the sleep after upload.
Thanks for letting me know.
> The token code never worked as intended, so no problem getting rid of it.
I ripped it out. Unmodified clients will still honor the returned "load level" of the server, so they still behave politely.
spaetz
More information about the Tilesathome
mailing list