Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / simultaneous downloads and unlinking symlinks

simultaneous downloads and unlinking symlinks

Locked

Started by limbo90 on 21 Dec 2006, 2:28 PM · Views: 862

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
21 Dec 2006, 2:28 PM
#1
limbo90 avatar

limbo90

New Zenner

Join Date:
Aug 2006
Posts:
18
Plugin Contributions:
0

simultaneous downloads and unlinking symlinks

I have been looking through the zencart code trying to understand the process involved in creating symlinks for secure downloads. one specific part of the script actively removes the current symlinks from the public download folder before creating a new symlink (using function zen_unlink_temp_dir).

does this not cause any existing symlinks to be removed and therefore potentially could cause problems with download reliability. I wonder how the system deals with near simultaneous creation of links and the associated unlinking of the any symlinks in the folder. I am assuming that its more a case of my mis-understanding the process than a real issue.

anyone got any direct experience/knowledge of this?

cheers