[Development] QtNetwork changes from QtDD SF 2011
shane.kearns at accenture.com
shane.kearns at accenture.com
Thu Dec 8 16:37:58 CET 2011
> Disk cache:
> * Get implementation from somewhere which is good enough for most
> applications
> * Set caching on by default: no
Hi,
Although the discussion seems to have moved on to an inter-process safe disk cache, there is a thread safe wrapper for QNetworkDiskCache attached to https://bugreports.qt.nokia.com/browse/QTBUG-20500 which can be used as a basis if QMutex locking should be used before IPC locking.
We have QSystemSemaphore for IPC locking, which may be more portable than file locking.
Both are vulnerable to malicious locking, although passing a randomised key to child processes could help the webkit case.
Unix has advisory file locks, and Windows has mandatory file locks, which could be used to prevent opening of a cache file that is locked by another process. QFile doesn't support them in Qt4.
________________________________
Subject to local law, communications with Accenture and its affiliates including telephone calls and emails (including content), may be monitored by our systems for the purposes of security and the assessment of internal compliance with Accenture policy.
______________________________________________________________________________________
www.accenture.com
More information about the Development
mailing list