Hi,

There's some code at the bottom of the while(TRUE) loop in the daemon which checks how close to the memory limit the script is. Unfortunately the ceiling is an undefined variable minus 10MB by default. This causes it to always be in excess of its memory limit and exit after one shot.

I've attached a patch that correctly defines $mem_lim and fixes the issue for me.

Thanks

CommentFileSizeAuthor
datasync_run.php_.memlimit.patch948 bytesneilnz

Comments

andrewlevine’s picture

neil, thanks for your bug reports. i'm not ignoring them. getting to them ASAP

andrewlevine’s picture

Status: Needs review » Fixed

thanks, fixed in dev. just a little different then your patch because we already have a function that returns the memory_limit setting in bytes

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.